AFL required

mmca2006

Active Member
#1
Requesting AFL experts of this forum to convert following ms code to AFL ,

MS code:-


BUY ----

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));

buy=Cross(H,F1)

SELL ----

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));

sell=Cross(F2,L)


:)
 

Similar threads