XG
{ZHKDJRZY}
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
MAXZ:=MAX(MAX(MA1,MA2),MA3);
MINZ:=MIN(MIN(MA1,MA2),MA3);
BZ:=(MAXZ/MINZ-1)*100;
XG1:=BZ<=2
AND MA1>=MA2
AND MA2>=MA3
AND MA1>=REF(MA1,1)
AND MA2>=REF(MA2,1)
AND MA3>REF(MA3,1)
AND C>MA1;
月值K:=KDJ.K#MONTH;
月值D:=KDJ.D#MONTH;
周值K:=KDJ.K#WEEK;
周值D:=KDJ.D#WEEK;
XG2:=KDJ.K>KDJ.D AND 月值K>=月值D AND 周值K>=周值D;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
XG3:=DEA>=-0.1 AND CROSS(DIF,DEA);
XG3 AND XG2;
赞 (0)