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

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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        938 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        3 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by rocketman7, Today, 01:00 AM
        0 responses
        2 views
        0 likes
        Last Post rocketman7  
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        27 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Working...
        X