Third bar condition formula

#1
Please Any one write previous 3rd bar condition of follwing formula :
(ie: if it appears in previous 3rd bar , it shows in current bar)

F1:=ValueWhen(1,H<Ref(H,-2) AND Ref(H,-1)<Ref(H,-2) AND Ref(H,-3)<Ref(H,-2) AND Ref(H,-4)<Ref(H,-2),Ref(H,-2));
a:=H>=F1;
If(a>0 AND Alert(a=0,2),Max(O,F1),0); F2:=ValueWhen(1,L>Ref(L,-2) AND Ref(L,-1)>Ref(L,-2) AND Ref(L,-3)>Ref(L,-2) AND Ref(L,-4)>Ref(L,-2),Ref(L,-2));
If(Cross(F2,L),Min(O,F2),0);

:confused:
 

rh6996

Well-Known Member
#2
Please Any one write previous 3rd bar condition of follwing formula :
(ie: if it appears in previous 3rd bar , it shows in current bar)

F1:=ValueWhen(1,H<Ref(H,-2) AND Ref(H,-1)<Ref(H,-2) AND Ref(H,-3)<Ref(H,-2) AND Ref(H,-4)<Ref(H,-2),Ref(H,-2));
a:=H>=F1;
If(a>0 AND Alert(a=0,2),Max(O,F1),0); F2:=ValueWhen(1,L>Ref(L,-2) AND Ref(L,-1)>Ref(L,-2) AND Ref(L,-3)>Ref(L,-2) AND Ref(L,-4)>Ref(L,-2),Ref(L,-2));
If(Cross(F2,L),Min(O,F2),0);

:confused:
You can post your Metastock problem on Equis Forum at :
http://forum.equis.com/
People are quiet helpful out there! As much as they are here on TJ:D