NexusFi: Find Your Edge


Home Menu

 





NT8 Strategy ATR STOP and TARGET


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 felgab 
Montreal, Quebec
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Futures
Posts: 16 since Jul 2011
Thanks Given: 9
Thanks Received: 5

Hi, I would like to see if someone could help me to put me on the track to get a dynamic TARGET and a STOPLOSS in a strategy with NinjaTrader 8. To get an exemple. I can build a strategy with VARIABLES and ENTRY with STRATEGY BUILTDER, but concerning a Dynamic TARGET and the STOPLOSS, it is another story. I am not looking for a trailing stop, but something like if High(0) > (Entry + (ATR(14) * 3.5)).
I know that we need to unlock script and use the code in the OnBarUpdate region but I do not know how.
Let me know if someone can help me. Thanks,


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Would a node-based workflow for automated trading be useful?
Traders Hideout
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Datafeed for Atas
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
  #2 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,581 since Oct 2009
Thanks Given: 4,267
Thanks Received: 6,212

Download this indicator (Formula indicator):
https://nexusfi.com/local_links.php?linkid=2129

Enter this formula as condition for a long in Strategy builder :


The formula is:
@"VALUE(EMA(50),0)+VALUE(ATR(14),0) *3.5"


Reply With Quote
Thanked by:




Last Updated on November 12, 2021


© 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