NexusFi: Find Your Edge


Home Menu

 





multicharts- ATR trailing stop expert adviser?


Discussion in MultiCharts

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




 
Search this Thread

multicharts- ATR trailing stop expert adviser?

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts