NexusFi: Find Your Edge


Home Menu

 





NT8 Strategy ATR STOP and TARGET


Discussion in NinjaTrader

Updated
    1. trending_up 2,065 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?
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)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199

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