Skip to main content

Peak &Trough for Metastock

seer over 16 years ago Metastock

  • Rating:
    4 / 5 (Votes 2)
  • Tags:

Peak and Trough system.

Screenshots

Indicator / Formula

Copy & Paste Friendly
{Bullish}
X:=1;
BarsSince(Cross(ValueWhen(1,Trough(1,C,X)<>Ref(Trough(1,C,X),-1),C),C))>
BarsSince(Cross(C,ValueWhen(1,Peak(1,C,X)<>Ref(Peak(1,C,X),-1),C)));

{Bearish}
X:=1;
BarsSince(Cross(ValueWhen(1,Trough(1,C,X)<>Ref(Trough(1,C,X),-1),C),C))<
BarsSince(Cross(C,ValueWhen(1,Peak(1,C,X)<>Ref(Peak(1,C,X),-1),C)));

1 comments

Leave Comment

Please login here to leave a comment.