Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/1/2013(UTC) Posts: 21
Thanks: 4 times
|
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);
|