AA:=(L-REF(H,5))/L*100;
BB:IF(AA<-15,1,0); (5日跌幅%15)
X1:=ABS(EMA(C,17)/EMA(C,50)-1)<0.01;
X2:=ABS(EMA(C,17)/EMA(C,50)-1)<0.01;
X3:=ABS(EMA(C,17)/EMA(C,50)-1)<0.01;
EMA(C,17)>REF(EMA(C,17),1) AND X1 AND X2 AND X3; (17均線粘合50日均線)
DIFF := EMA(CLOSE,3) - EMA(CLOSE,5);
DEA := EMA(DIFF,5);
CROSS(DIFF,DEA); (MACD買入)
聯(lián)系客服