Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Send screenshot Share()

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Send screenshot Share()

    Hi I am not able to figure out how the share image function works.

    Specifically the first string variable asking for share service. I’d like to email the image to an address.

    #2
    Hello brucelevy,

    Thanks for your post.

    The first string is basically the name of the share service you previously created in Tools>options - Share services The first field in there is the name of the share service and that is what you would provide to the Share() method.

    Please see the examples in the helpguide here: https://ninjatrader.com/support/help...-us/?share.htm also, review the tips in the link.

    The first example in the helpguide shows sharing an image.

    The second example shows sending a message to a different e-mail address.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      It is called Email but it says Email is not found in the current context.

      Comment


        #4
        Hello brucelevy,

        Thanks for your reply.

        To discuss further would be better do through e-mail so as not expose e-mail addresses in the forum. I will need to see a screenshot of how your share service is set-up, and an example of the code you are using that produces the issue. In addition, please send your log and trace files to:

        PlatformSupport@NinjaTradaer[dot]Com, mark the e-mail Atten: Paul and include a link to this thread.

        Open your NinjaTrader folder under My Documents.
        Right-click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
        Send the 2 compressed folders as attachments to your email to platformsupport.
        Once complete, you can delete these compressed folders.
        Please include the screenshot(s) and code requested in your reply.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          My sendmail function works fine, I am using gmail.

          Would you be able to show me an example of sending a screenshot to an email? I see the one in the help guide but doesn’t seem to work.

          I’ll send the information you requested once I get back to my computer.

          Thanks.

          Comment


            #6
            Hello brucelevy,

            Thanks for your reply.

            Sure, here is an example:

            Share("Email", "Example Image", @"C:\Users\nameofuser\Documents\NinjaTrader 8\testimage.png", new object[]{"[email protected]","test e-mail with image"});

            Please note that share will only work in real time.
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Sorry Paul,

              Is the file "testimage.png" created automaticly by NT8? Or do you need to create this file previously?

              I want to send a screenshot in real time. Is this the best way to do it?

              Comment


                #8
                Hello soyjesus,

                Thanks for your post.

                The screenshot would need to be previously created.

                You may want to review this thread: https://ninjatrader.com/support/foru...738#post527738
                Paul H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by ZenCortexCLICK, Today, 04:58 AM
                0 responses
                2 views
                0 likes
                Last Post ZenCortexCLICK  
                Started by sidlercom80, 10-28-2023, 08:49 AM
                172 responses
                2,280 views
                0 likes
                Last Post sidlercom80  
                Started by Irukandji, Yesterday, 02:53 AM
                2 responses
                17 views
                0 likes
                Last Post Irukandji  
                Started by adeelshahzad, Today, 03:54 AM
                0 responses
                5 views
                0 likes
                Last Post adeelshahzad  
                Started by Barry Milan, Yesterday, 10:35 PM
                3 responses
                13 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Working...
                X