ma5:=MA(CLOSE,5),COLORBLUE;
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;