Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Post screenshot of tab on twitter and Instrumentname

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

    Post screenshot of tab on twitter and Instrumentname

    Hello,

    I found the option on alters to post a screenshot on twitter from the current tab. How can I setup the same in my strategie? I dont find an option there.

    Additional I´d like to post the instrumentname and the current price.

    Thank you !

    #2
    Hello Uregon,

    To send a screenshot to twitter you need to set up a share service for twitter first.
    https://ninjatrader.com/support/help...gShareServices
    https://ninjatrader.com/support/help...ghtsub=twitter

    Once you have the service configured you can use the Share function in NinjaScript. Share works by providing the name of the share service you made, it also has overloads to attach files or images.

    https://ninjatrader.com/support/help...lightsub=share

    Code:
    Share("Twitter", "Message", @"C:\MyImages\chart03.PNG");
    The instrument name can be found using Instrument.FullName

    https://ninjatrader.com/support/help...instrument.htm

    You can find a sample of taking a screenshot here: https://ninjatrader.com/support/foru...865#post717865

    Comment


      #3
      NinjaTrader_Jesse Thank you. But I´m looking for that my strategy is automatic generate the screenshot and share it, like in the alert option.

      Comment


        #4
        Hello Uregon,

        You would have to program the strategy to do that. The links I provided are how to set up a share service to use twitter and then use it in your script. There is also a sample of taking a screenshot linked, you would need to combine those concepts in your script to do those actions.



        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X