P1:=MA(CLOSE,M1);
P2:=MA(CLOSE,M2);
P3:=MA(CLOSE,M3);
A:=REF(CLOSE>OPEN,3)&&REF(CLOSE/OPEN>1.03,3);
A1:=REF(CLOSE<OPEN,2);
A2:=REF(CLOSE<OPEN,1);
B:=REF(OPEN,3)<REF(OPEN,2)&&REF(OPEN,3)<REF(OPEN,1);
B1:=REF(OPEN,3)<REF(CLOSE,2)&&REF(OPEN,3)<REF(CLOSE,1);
ENTERLONG:B1&&B&&A&&A1&&A2&&P1>=P2&&P1>=P3&&P2>=P3&&CLOSE>P2;
|