NexusFi: Find Your Edge


Home Menu

 





NT8 Strategy ATR STOP and TARGET


Discussion in NinjaTrader

Updated
    1. trending_up 2,154 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?
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
Post-Summit Scorecard: $36M in May 15 Bets Settle Near-Z …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
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,208

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