买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
指导:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
界:=MA(CLOSE,27);
B买:=IF(crOSS(指导,界) OR CROSS(买线,卖线),C,DRAWNULL);
持仓:=IF(买线>=卖线,C,DRAWNULL);
S卖:=IF(CROSS(界,指导) OR CROSS(卖线,买线),C,DRAWNULL);
空仓:=IF(买线<卖线,C,DRAWNULL);
ZT:=C/REF(C,1)>1.0993 AND C=H;
DT:=C/REF(C,1)<0.913 AND C=L;
MA3:=MA(C,3);
MA7:=MA(C,7);
MA10:=MA(C,10);
YCX:=MA3>=REF(MA3,1);
H1:=MAX(MAX(MA3,MA7),MA10);
L1:=MIN(MIN(MA3,MA7),MA10);
一阳穿三线:= H1
ZTT:=C>REF(C,1)*1.091 AND C=H;
XG:REF(ZTT,5) AND REF(ZTT,4) AND C>O AND C>REF(C,1) AND C>REF(O,5) AND REF(ZTT,6)=0;