NexusFi: Find Your Edge


Home Menu

 





Ninjatrader ATM strategy to automatically adjust your trail stop based on prev candle


Discussion in NinjaTrader

Updated
    1. trending_up 1,442 views
    2. thumb_up 3 thanks given
    3. group 4 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 mrdanielkuo 
CA, USA
 
Posts: 17 since Nov 2011
Thanks Given: 13
Thanks Received: 4

Hi all,

Is there a Ninjatrader 8 ATM strategy will automatically adjust your trail stop based on previous candle low/high? Thank you.

For example:
If I use one minute candle chart and has a long entry at 10:05:30AM, when at 10:06:00AM, the trail stop will automatically adjust to be the low of 10:05AM candle (minus x ticks - ideally adjustable), when at 10:07:00AM, the trail stop will automatically adjust to be the low of 10:06AM candle (minus x ticks - ideally adjustable).

If I use one minute candle chart and has a short entry at 10:05:30AM, when at 10:06:00AM, the trail stop will automatically adjust to be the high of 10:05AM candle (plus x ticks - ideally adjustable), when at 10:07:00AM, the trail stop will automatically adjust to be the high of 10:06AM candle (plus x ticks - ideally adjustable).

Thanks,

Daniel


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Iran War Prediction Markets: Ceasefire 16%, Ground Invas …
Prediction Markets & Event Contracts
Iran Ceasefire Surges to 19.5% on US 15-Point Plan -- 82 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 
DavidHP's Avatar
 DavidHP 
Isla Mujeres, MX
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: NQ / ES / 6E / 6B / CL
Frequency: Every few days
Duration: Minutes
Posts: 1,801 since Aug 2009
Thanks Given: 11,742
Thanks Received: 3,018

Maybe this wil be helpful.




Sent using the NexusFi mobile app


Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



mrdanielkuo View Post
Hi all,

Is there a Ninjatrader 8 ATM strategy will automatically adjust your trail stop based on previous candle low/high? Thank you.

For example:
If I use one minute candle chart and has a long entry at 10:05:30AM, when at 10:06:00AM, the trail stop will automatically adjust to be the low of 10:05AM candle (minus x ticks - ideally adjustable), when at 10:07:00AM, the trail stop will automatically adjust to be the low of 10:06AM candle (minus x ticks - ideally adjustable).

If I use one minute candle chart and has a short entry at 10:05:30AM, when at 10:06:00AM, the trail stop will automatically adjust to be the high of 10:05AM candle (plus x ticks - ideally adjustable), when at 10:07:00AM, the trail stop will automatically adjust to be the high of 10:06AM candle (plus x ticks - ideally adjustable).

Thanks,

Daniel

This is not possible. When using Automasted Trade Management (ATM) Stops will be trailed at a set distance - trailing amount - from the highest high (long position) or lowest low (short position).
This will not take into account lows or highs of the prior candle.

However, you may create a custom strategy with the strategy builder or directly via NinjaScript that adjusts the stops as you have described.


Reply With Quote
Thanked by:




Last Updated on January 29, 2023


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts