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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    56 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    35 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    57 views
    0 likes
    Last Post PaulMohn  
    Working...
    X