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 CortexZenUSA, Today, 12:53 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,265 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X