DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
周MD:=MACD.DIF#WEEK;
周MA:=MACD.DEA#WEEK;
月MD:=MACD.DIF#MONTH;
月MA:=MACD.DEA#MONTH;
换手率:=V/CAPITAL*100 ;
RSV60:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36));
K60:=SMA(RSV60,3,1);{WWW.GOODGUPIAO.COM}
D60:=SMA(K60,3,1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
周KK:="KDJ.K#WEEK" ;
周D:="KDJ.D#WEEK" ;
月KK:="KDJ.K#MONTH" ;
月D:="KDJ.D#MONTH" ;
DIF60:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
DEA60:=EMA(DIF60,9/2);
XG1:=DIF60>=DEA60;
XG2:=DIF>=DEA;
XG3:=周MD>=周MA;
XG4:=月MD>=月MA;
XG5:=K60>= D60;
XG6:=K>=D;
XG7:=周KK>=周D;
XG8:=月KK>=月D;
XG9:=XG1 AND XG2 AND XG3 AND XG4 AND XG5 AND XG6 AND XG7 AND XG8;
XGE:=XG1 + XG2 + XG3 + XG4 + XG5 + XG6 + XG7 + XG8;
XG:=REF(XG9,1)<>1 AND XG9=1;
;
周M快:=MACD.DIF#WEEK;
周M慢:=MACD.DEA#WEEK;
月M快:=MACD.DIF#MONTH;
月M慢:=MACD.DEA#MONTH;
周K:=KDJ.K#WEEK;
周J:=KDJ.J#WEEK;
月K:=KDJ.K#MONTH;
月J:=KDJ.J#MONTH;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
MA4:=MA(CLOSE,60);
MA5:=MA(CLOSE,120);
MA6:=MA(CLOSE,250);
周M快>=周M慢 AND 月M快>=月M慢 AND 周J>=周K AND 月J>=月K
AND (REF(周M快,1)< REF(周M慢,1) OR REF(月M快,1)< REF(月M慢,1) OR REF(周J,1)< REF(周K,1) OR REF(月J,1)< REF(月K,1) ) AND XG>0
AND MA6> MA5 AND MA5> MA4 AND MA4> MA3;