Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Attach order to Indicator code

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

    Attach order to Indicator code

    Hello,

    I am currently using NT 7, and see that NT 8 has a Attach Order to Indicator feature that I have been trying to add to my strategy in NT 7. Is there a way to access the source code for this feature and use it for NT 7?

    #2
    Hello chrisca,

    The attach order to indicator feature is not a NinjaScript Strategy method. This built into the interface of ChartTrader and the SuperDOM in NinjaTrader 8.



    Currently, if you have a strategy, you can set any order placed by the strategy to the price of an indicator at any time by calling that indicator and setting the price of an order to the price of that indicator.

    Set the price of an order by calling the order method.


    For example:
    Code:
    if (SMA(14)[0] < GetCurrentAsk())
    {
    EnterLongLimit(SMA(14)[0], "myEntryOrder");
    }
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    328 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    210 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    196 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    285 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    241 views
    0 likes
    Last Post CarlTrading  
    Working...
    X