DIF:=3000*(EMA(CLOSE,12)-EMA(CLOSE,26))/EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
MA5:=MA(C,5);
MA24:=MA(C,24);
MV5:=MA(V,5);
MV60:=MA(V,60);
MACD红区:=DIF>DEA AND MACD>0;
五价在廿四价上:=MA5>MA24 AND REF(MA5,2)<REF(MA5,3) AND REF(MA5,3)<REF(MA5,4) AND REF(MA5,1)>REF(MA5,2);
五量在六十量上:=MV5>MV60 AND MV5>REF(MV5,1);
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:=IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL);
XG:MACD红区 AND 五价在廿四价上 AND 五量在六十量上 AND VVOL>MV60 AND C>O; |