Skip to main content

ATR STOP AND REVERSE for Metastock

garry_gc almost 15 years ago Metastock

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

THIS SHOULD BE USED WITH OTHER B.O. INDICATOR. DO NOT USE ALONE.

Indicator / Formula

Copy & Paste Friendly

period:=Input("ATR period :",1,100,3);
atrfact:=Input("ATR multiplication :",1,10,2);
HiLo:=If(H-L<1.5*Mov(H-L,period,S),H-L, 1.5*Mov(H-L,period,S));
Href:=If(L<=Ref(H,-1),H-Ref(C,-1),(H-Ref(C,-1))-(L-Ref(H,-1))/2);
Lref:=If(H>=Ref(L,-1),Ref(C,-1)-L,(Ref(C,-1)-L)-(Ref(L,-1)-H)/2);
diff1:=Max(HiLo,Href);
diff2:=Max(diff1,Lref);
atrmod:=Wilders(diff2,period);
loss:=atrfact*atrmod;

2 comments

Leave Comment

Please login here to leave a comment.