Var2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);
Var3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;
Var4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;
Var5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;
Var6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;
Var7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;
Var8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;
Var9:=(Var3+Var4+Var5+Var6+Var7+Var8)/6;
VarB:=ABS(Var6-Var8);
VarC:=(Var9+VarB)/2;
Var10:=IF(VarC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);
Var13:=REF(CLOSE,2)*0.865;
Var14:=REF(CLOSE,13)*0.772;
Var15:=MIN(Var13,Var14);
Var16:=100*VOL/CAPITAL;
Var18:=IF((CLOSE-Var15)/CLOSE<0.03 AND SUM(Var16,5)/5<1.8,1,0);
Var19:=IF(Var18>0 AND (Var10<0 OR Var2>0),100,0);
Var1A:=Var19;
g:=MA(CLOSE,80)-MA(CLOSE,10)/3;
aaa:=Var1A and CLOSE<g;
Var3a:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,33)*100;
bbb:=HHV(CLOSE,13)/CLOSE>1.15 AND HIGH/LOW>1.08 AND CROSS(-30,Var3a);
Var1bb:=INDEXC;
Var2b:=MA(Var1bb,6);
Var3b:=MA(Var1bb,24);
Var4b:=MA(Var1bb,32);
Var5b:=MA(Var1bb,62);
Var6b:=MA(Var1bb,105);
Var7b:=Var5b<REF(Var5b,1) AND Var6b<REF(Var6b,1) AND Var5b<Var6b*0.98;
Var8b:=Var4b>Var2b*1.11 AND Var3b>Var2b*1.095;
Var9b:=Var2b>Var1bb*0.95;
ccc:=Var7b AND Var8b AND Var9b AND CLOSE/COST(8)<=0.8 AND count(c<>o,2)=2;
Var1cc:=DMA(CLOSE,VOL/MA(VOL,4)/4);
Var2c:=DMA(CLOSE,VOL/MA(VOL,33)/33);
Var3c:=(CLOSE-Var1cc)/Var1cc*100<-11;
Var4c:=(Var1cc-Var2c)/Var2c*100<-22.3;
Var5c:=Var3c AND Var4c;
ddd:=Var5c AND OPEN/REF(CLOSE,1)>0.93 AND count(c<>o,8)=8;
A1:=INDEXC;
A2:=MA(A1,5);
A3:=MA(A1,20);
A4:=MA(A1,30);
B1:=A4>A2*1.08 AND A3>A2*1.055;
B2:=A2>A1*1.03;
B3:=B1 AND B2;
M1:=MA(C,5);
M2:=MA(C,10);
M3:=M2>M1;
N1:=M1/C>1.09;
N2:=M2/M1>1.05;
N3:=(H>L*1.07) AND COUNT(H>L*1.04,5)>2;
N4:=COUNT(M3,7)=7;
N5:=N1 AND N2 AND N3 AND N4;
eee:=B3 AND N5;
ff:=(ref(c,32)-close)/ref(c,32)>=0.385;
fff:=ccc and ff;
Xar1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
Xar2:=(CLOSE-xar1)/xar1*100+30-(REF(HIGH,13)/CLOSE-1.35)*100;
Xar3:=(CLOSE-ref(CLOSE,5))/CLOSE*100<-9;
当前获利:=WINNER(CLOSE);
大盘涨跌:=ema((INDEXC-ma(INDEXC,10))/INDEXC*100,14)<-4.9;
换手率:=(ma(v,5)-VOL)/CAPITAL*100<0.8;
量能变化:=(vol-MA(vol,21))/vol*100;
买入信号:=大盘涨跌 AND Xar3 AND 当前获利<0.12 AND
换手率 AND 量能变化>18;
{飞雪迎春Xar2<-8.1 AND 买入信号=1);}
{DRAWTEXT(飞雪迎春=1,0.8,'飞雪迎春' );}
gg1:=大盘涨跌 AND Xar3 AND 当前获利<0.12 AND
换手率 AND 量能变化>18;
ggg:=aaa and gg1;
(aaa and bbb) or (aaa and ccc) or (aaa and ddd) or (aaa and eee) or fff or ggg;
|