Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

attaching order to an indicator that was placed by 3rd party add-on

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

    attaching order to an indicator that was placed by 3rd party add-on

    Hello,

    I am able to manually attach existing target order to any indicator plot.

    I would like to be able to programmatically attach existing order to an indicator that is currently loaded on specific chart. Assuming that specific indicator is loaded, I need to perform following:

    1. Identify correct chart (there are articles on how to do it)
    2. Find specific indicator instance on that chart.
    3. Attach order to that specific indicator plot - possibly with few ticks offset, and also indicate boolean value whether to "move towards last price only".
    4. Then in case I need - how to uncheck "Enabled" once it is already attached - in order to "Detach" that order from indicator?

    The reason for me to go "Extra Mile" is because order is placed by 3rd party add-on, and once that order is placed - I want to programmatically adjust it (by finding order from Account object, etc..).

    Could you please guide or provide sample code on how to accomplish all these items?

    Thanks

    #2
    Hello music_p13,

    Thanks for your post.

    There are no supported or documented means for identifying an external indicator on a chart due to synchronicity. Also, there are no supported means for being able to identify an external indicator's plot name. You could consider looping through ChartControl.Indicators and accessing Values[ ][ ] of that found indicator.

    You could also consider adding the indicator to which you want to attach the order within your own custom indicator and use Account.Change() to move a specified order object to the indicator's plot.

    See the help guide documentation below for more information.

    ChartControl.Indicators: https://ninjatrader.com/support/help...indicators.htm
    Values: https://ninjatrader.com/support/help...nt8/values.htm
    Account: https://ninjatrader.com/support/help...ount_class.htm
    Account.Change: https://ninjatrader.com/support/help...nt8/change.htm

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    560 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    325 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X