Skip to main content

Trailing Stoploss ATR for Metastock

kaiji over 16 years ago Metastock

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    metastock, stop loss

ATR trailing stop loss for Metastock

Indicator / Formula

Copy & Paste Friendly
PDay := Input("Day of Month" ,1,31,1);
PMonth := Input("Month" ,1,12,1);
PYear := Input("Year",2000,2010,2002);
PATR := Input("Multiple of ATR",1,10,2);
TSE1 := BarsSince(DayOfMonth() = PDay AND Month() = PMonth AND Year() = PYear);
TSE2 := HighestSince(1,TSE1=0,H ) ;
TSE3 := TSE2 - PATR*ATR(15);

HighestSince(1 ,TSE1 = 1 ,TSE3 );

0 comments

Leave Comment

Please login here to leave a comment.