VARTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1);
VARDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0);
QW1:=(HIGH+LOW+CLOSE*2)/4*VARTIME;
QW3:=EMA(QW1,10)*VARTIME;
QW4:=STD(QW1,10)*VARTIME;
QW5:=(QW1-QW3)*100/QW4*VARTIME;
QW6:=EMA(QW5,5)*VARTIME;
RK7:=EMA(QW6,10)*VARTIME;
涨:=EMA(QW6,10)+100/2-5;
跌:=EMA(涨,4);
VAR811:=SUMBARS(vol,FINANCE(7)*100)*VARTIME;
VAR822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL)*VARTIME;
VAR883:=(CLOSE-VAR822)/VAR822*100*VARTIME;
VAR884:=HHV(VAR883,VAR811)*VARTIME;
VAR885:=LLV(VAR883,VAR811)*VARTIME;
VAR886:=(VAR883-VAR885)/(VAR884-VAR885)*100*VARTIME;
K:=SMA(VAR886,3,1)*VARTIME;
D:=SMA(K,3,1)*VARTIME;
J:=3*K-2*D;
MA1:=MA(J,3)*VARTIME;
考虑买进:FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0;