Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

External program drawing object on chart

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

    External program drawing object on chart

    I have a third party program which uses the Ninja Trader API to submit enter long or enter short orders using the API.
    I would like to plot a diamond on the NT chart at the same time as the order is submitted. Is there an API reference sample for external programs to access a chart.?

    If there is not, I could alternatively make an indicator which would be loaded into the chart which indicator picks up a value from the third party program and uses it to derive the place to place the diamond. A crude way would be to have the third-party program write the data to a file which file is periodically inspected by the indicator. This seems crude, however

    So is there any other way for an indicator to capture a value from a program ruining separately from NT?

    #2
    Hello,

    Thanks for the forum post.

    Unfortunately there is no supported way for the API to access a NinjaTrader drawn chart. You would need to code an indicator that adds these symbols to the chart manually as you describe.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      use DDE to pick up external program data

      Is there a way to uses DDE or some other mechanism to communicate on an interrupt basis with an external program? Some thing like the OnBarUpdate() architecture but having a way to pick up external data - for example (made up name) OnDataTrap()

      Comment


        #4
        Hello,

        There is unfortunately no DDE connection supported in NinjaTrader however you may try searching the forum there have been a few members that have tutorials on how to add this into NinjaTrader.

        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X