五:=MA(CLOSE,5);
十:=MA(CLOSE,10);
工作线:=MA(CLOSE,20);
涨幅%:=(C-REF(C,1))/REF(C,1)*100;
条件3:=工作线>REF(工作线,1) AND 五>十 AND 十>工作线 AND 涨幅%>3;
kdj_K:="kdJ.K"(9,3,3);
KDJ_D:="KDJ.D"(9,3,3);
KDJ_J:="KDJ.J"(9,3,3);
D1:=crOSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);
{ _通达信指标公式}
D2:=CROSS("rsi.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
D3:=CROSS("macd.DIF","MacD.DEA") OR CROSS("MACD.MACD",0);
D0:=D1+D2+D3;
XG2:IF(D0>1,D0,0) AND 条件3;