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 Kaledus, Today, 01:29 PM
    0 responses
    3 views
    0 likes
    Last Post Kaledus
    by Kaledus
     
    Started by PaulMohn, Today, 12:36 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by yertle, Yesterday, 08:38 AM
    8 responses
    36 views
    0 likes
    Last Post ryjoga
    by ryjoga
     
    Started by rdtdale, Today, 01:02 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by alifarahani, Today, 09:40 AM
    3 responses
    18 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X