NexusFi: Find Your Edge


Home Menu

 





multicharts- ATR trailing stop expert adviser?


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
 Ryan Scobby 
Grants Pass, Oregon USA
 
Experience: Intermediate
Platform: metatrader and converting to multicharts
Trading: Forex
Posts: 1 since Sep 2012
Thanks Given: 1
Thanks Received: 0

Has anyone made a ATR trailing stop, that will close your position.....like while you are at work?? If so I would love to know how? New to multicharts


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
Iran Talks Final Stages -- Two VLCCs Exit Hormuz, Record …
Traders Hideout
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
  #2 (permalink)
 ehlaban 
Netherlands
 
Experience: Advanced
Platform: Ensign, Multicharts
Trading: SP500
Posts: 91 since Nov 2009
Thanks Given: 66
Thanks Received: 57

Haven't coded it myself not tried it but perhaps this helps

 
Code
[LegacyColorValue = TRUE];

Inputs: TrailingATRs(4), ATRLength(10);
Variables: PosHigh(0), PosLow(0), ATRVal(0);

ATRVal = AvgTrueRange(ATRLength) * TrailingATRs;

If MarketPosition = 1 Then Begin
	If BarsSinceEntry = 0 Then
		PosHigh = High;
	If High > PosHigh Then
		PosHigh = High;
	ExitLong Next Bar at PosHigh - ATRVal Stop;
End;

If MarketPosition = -1 Then Begin
	If BarsSinceEntry = 0 Then
		PosLow = Low;
	If Low < PosLow Then
		PosLow = Low;
	ExitShort Next Bar at PosLow + ATRVal Stop;
End;


Reply With Quote
Thanked by:




Last Updated on December 7, 2012


© 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