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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    30 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    286 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    282 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    132 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X