G1:=REF(CLOSE,4)>REF(OPEN,4);
G2:=REF(CLOSE,3)>REF(OPEN,4) AND REF(CLOSE,3)<REF(CLOSE,4);
G3:=REF(CLOSE,2)>REF(OPEN,4) AND REF(CLOSE,2)<REF(CLOSE,3);
G4:=REF(CLOSE,1)>=REF(OPEN,4) AND REF(CLOSE,1)<REF(CLOSE,2);
G5:=CLOSE>REF(HIGH,1);{价格的比较}
H1:=REF(VOL,2)<REF(VOL,3) AND REF(VOL,1)<REF(VOL,2) AND VOL>REF(VOL,1);{量的比较}
J1:=G1 AND G2 AND G3 AND G4 AND G5 AND H1;
DRAWTEXT(J1,HIGH,'上升三法');{输出一:上升三法}
AA1:=LLV(LOW,MM);
AA2:=AA1*NN;
AA3:=CLOSE<AA2;
TT1:=PEAK(1,5,1);{上一个波峰的峰值}
TT2:=PEAK(0,5,1);{上一个波峰到当前的周期数}
TT3:=TT2>MM1 AND CLOSE>TT1 AND REF(CLOSE,1)<=TT1 AND REF(CLOSE,2)<=TT1 AND REF(CLOSE,3)<=TT1;
TT5:=AA3 AND TT3;
DRAWTEXT(TT5,HIGH,'过');{输出二:过左峰} |