Metastock Indicator Formula |
Final Plot |
Formula: |
Fml ( "Final Plot" ) =
If (BarsSince ( Fml ( "Downtrend" )) < BarsSince ( Fml ( "Uptrend" )),
{ then } Ref ( HHV (H,4), -1 ), { else } Ref (LLV (L,4) ,-1 ))
where........
Fml ( "Downtrend" ) =
Peak(1, If (L
Ref(Peak(1, If (L
and......
Fml ( "Uptrend" ) =
Peak(1, If (H>Ref(HHV(H,4),-1), Ref(LLV(L,4), -1), 0), 1) <>
Ref(Peak(1, If (H>Ref(HHV(H,4),-1), Ref(LLV(L,4), -1), 0), 1) |
|
|