Showing posts with label metastock trailing stop. Show all posts
Showing posts with label metastock trailing stop. Show all posts

Wednesday, March 18, 2015

Trailing Stop - MetaStock Formula

For any person who has entered a trade of any type they would be well aware of the importance of knowing when to exit the trade.

One of the techniques used to determine your stop level is the trailing stop something that is simple in theory but much more difficult to follow in practise. To assist you with using the trailing stop method I have included the metastock formula below using the Average True Range of the stock to determine the maximum difference between the close the stop level:

Trailing Stop Formulapday:=Input("day of month", 1,31,1);
pmonth:= Input("Month", 1,12,1);
pyear:=Input("Year", 2000,2011,2010);
ATRmult:=Input("ATR mult", 1,20,7);

TSD1:=BarsSince(DayOfMonth()=PDay AND Month() = pMonth AND Year()=pyear);
TSD2:=HighestSince(1,TSD1=0,H);
TSD3:=TSD2-(ATRmult*ATR(15));

HighestSince(1,TSD1=1,TSD3)




Buy Your Own Lifetime MetaStock Data Supply
buy

Sunday, February 22, 2015

MetaStock Formula - Trailing Stop - ATR

Knowing when to exit your stock position is an important part of any traders trading method. An alternative to the percentage method is the Average True Range (ATR) trailing stop.

Trailing Stop ATR - MetaStock Formula (Indicator Builder)

pday:=Input("day of month", 1,31,1);
pmonth:= Input("Month", 1,12,1);
pyear:=Input("Year", 2000,2015,2013);
ATRmult:=Input("ATR mult", 1,20,7);

TSD1:=BarsSince(DayOfMonth()=PDay AND Month() = pMonth AND Year()=pyear);
TSD2:=HighestSince(1,TSD1=0,H);
TSD3:=TSD2-(ATRmult*ATR(15));

HighestSince(1,TSD1=1,TSD3)

With this indicator you simple need to enter the date you entered the trade and your multiplier of the ATR.