Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to develop a trailing buy stop or trailing sell stop?

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

    How to develop a trailing buy stop or trailing sell stop?

    I'm trying to develop a strategy that allows me to have a trailing buy stop or trailing sell stop. Once the stop is hit, I have an ATM strategy that will activate. However, how can I get a trailing buy stop or sell stop to work in Ninja?


    Example:



    I want to enter a trailing buy stop on the dom anywhere above the market price.(and not have it immediately move to 4 ticks away from market price)

    I want the buy stop to follow the market down every time the market falls by 4 ticks.

    Once the buy stop is triggered, I want a profit of 4 ticks and stop loss of 12 ticks.(ATM)



    And:



    Just the opposite with a trailing sell stop

    I want to enter a trailing sell stop on the dom anywhere below the market price..(and not have it immediately move to 4 ticks away from market price)

    I want the sell stop to follow the market up every time the market increases by 4 ticks.

    Once the sell stop is triggered, I want a profit of 4 ticks and stop loss of 12 ticks.(ATM)

    I have the ATM ready to go, but cant find a way to do trailing buy/sell stops>

    Tradovate has a simple bracket strategy that does this, see attached.
    Attached Files

    #2
    Hello jb805,

    Thanks for your post.

    ATM strategies would be used to automatically deploy stop loss and profit target orders upon execution of the entry order.

    ATM strategies also have a Chase feature for entry orders where you can have the entry order chase after the current market price for as many ticks as you specify with Chase Limit.

    More information on Auto Chase can be found here - https://ninjatrader.com/support/help...auto_chase.htm

    Trailing stops for your Stop Loss can be set up in a Stop Strategy.

    Stop Strategies - https://ninjatrader.com/support/help...p_strategy.htm

    Auto Trail - https://ninjatrader.com/support/help...auto_trail.htm

    Our publicly available ATM 301 tutorial goes further into making Auto Trails - https://www.youtube.com/watch?v=DH9y-j64X1U

    Auto Chase will not allow incremental movement of the entry orders, so you could not have the entry order move with X number of ticks seen.

    If you want to go as far as having an entry order move in incremental movements, it would be best done with a fully automated NinjaScript strategy, where the strategy is programmed to submit the entry order and modify the entry order with X number of ticks seen. To get started with NinjaScript strategies, I recommend starting with out Strategy Builder 301 course and then to test our various conditions and actions examples, and then to incorporate logic in a larger strategy.

    Strategy Builder 301 (publicly available resource) — https://www.youtube.com/watch?v=_KQF2Sv27oE

    Conditions examples —https://ninjatrader.com/support/help...on_builder.htm

    Actions examples — https://ninjatrader.com/support/help...us/actions.htm

    If you would like more information on programming NinjaScript strategies, please open a new thread in our Strategy Development forum.

    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Rapine Heihei, Today, 08:19 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 08:25 PM
    0 responses
    5 views
    0 likes
    Last Post Rapine Heihei  
    Started by f.saeidi, Today, 08:01 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 07:51 PM
    0 responses
    6 views
    0 likes
    Last Post Rapine Heihei  
    Started by frslvr, 04-11-2024, 07:26 AM
    5 responses
    98 views
    1 like
    Last Post caryc123  
    Working...
    X