NexusFi: Find Your Edge


Home Menu

 





multicharts- ATR trailing stop expert adviser?


Discussion in MultiCharts

Updated
    1. trending_up 4,594 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?
Volumetric charts
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Radarscreen
TradeStation
Pivot Indicator based on Level2 data
NinjaTrader
How to plot a custom icon for crossover
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
46 thanks
Tao te Trade: way of the WLD
43 thanks
What is Markets Chat (markets.chat) real-time trading ro …
41 thanks
HumbleTraders next chapter
27 thanks
1 Minute Man
19 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


© 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 - Sitemap - Downloads - Top
no new posts