MA5:=MA(CLOSE,5),COLORYELLOW;
MA10:=MA(CLOSE,10);
VOL5:=MA(VOL,5);
VOL10:=MA(VOL,10);
条件1:=CROSS(MA5,MA10);
条件2:=CROSS(VOL5,VOL10);
条件3:=CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9));
TIAOJIAN1:=COUNT(条件1,10)>0;
TIAOJIAN2:=COUNT(条件2,10)>0;
TIAOJIAN3:=COUNT(条件3,10)>0;
买入:=TIAOJIAN1 AND TIAOJIAN2 AND TIAOJIAN3;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
买入 AND CROSS(DIFF,DEA) AND DIFF<-0.1;