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

Attach a trailing stop to indicator

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

    Attach a trailing stop to indicator

    NT8 provides a great feature - Attach order to indicator.
    Is it possible to do that using NinjaScript? Moreover, it is possible to attach a trailing stop of an already filled order to an indicator, using NinjaScript?

    Thank you.

    #2
    Hello xsgex,

    Thanks for your inquiry.

    NinjaTrader 8 allows attaching orders to indicators - and entering ATM strategies from those orders. This also extends to using stop strategies that allow you to configure an auto trail.

    In the past this automation was only possible through NinjaScript. You can still configure a NinjaScript strategy using SetAutoTrail(). You can also configure your strategy so it can place a limit order that gets updated with the value of an indicator or that triggers an entry upon a crossover. The same can be done for exit orders. So you can have the strategy enter based off the value of an indicator and you can exit based off the value of an indicator.

    A simple NinjaScript strategy that can do this can be made using the Strategy Builder, without the prerequisite of having a programming background.

    Using ATM strategies, you can follow the ATM 301 webinar to see how you can enter an ATM strategy by attaching an order to an indicator, and you can configure an Auto Trail for that ATM as well.

    The Strategy Builder 301 webinar will demonstrate how you can create your own customized automated strategy.

    ATM 301 - https://www.youtube.com/watch?v=U-ziDpggSGA

    Strategy Builder 301 - https://www.youtube.com/watch?v=HCyt90GAs9k

    Please let me know if I may be of further assistance.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kempotrader, Today, 08:56 AM
    0 responses
    6 views
    0 likes
    Last Post kempotrader  
    Started by kempotrader, Today, 08:54 AM
    0 responses
    4 views
    0 likes
    Last Post kempotrader  
    Started by mmenigma, Today, 08:54 AM
    0 responses
    2 views
    0 likes
    Last Post mmenigma  
    Started by halgo_boulder, Today, 08:44 AM
    0 responses
    1 view
    0 likes
    Last Post halgo_boulder  
    Started by drewski1980, Today, 08:24 AM
    0 responses
    4 views
    0 likes
    Last Post drewski1980  
    Working...
    X