组合了一个抄底选股指标
x:=c-ref(ma(c,20),11);
lgl:=IF(EMA(C,5)/EMA(EMA(C,9),16)<=0.85 and c/ref(c,1)>0.905 and c/ref(c,1)<1.05 and VOL/CAPITAL*100<5,50,0); wr1:=-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100*x; wr2:=-100*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100; wr3:=-100*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100*x; BIAS1:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5; BIAS2:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5; BIAS3:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5; s1:=(wr1+wr2+wr3+bias1+bias2+bias3)/6*x; s2:=ema(s1,3); s3:=abs(bias1-bias3); sx:=(s1+s3)/2; xc1:=(-1)*(ema(100*(1-WINNER(CLOSE)),1)-50)+50; ccc:=xc1+sx; zjz:=IF( lgl>0 and ccc<0,200,0)*x; lxl:=if(sx<0 and c=llV(c,5) and c/ref(c,1)>0.905 and c/ref(c,1)<1.05 and VOL/CAPITAL*100<5,-50,0); jbj:=if(ccc<0 and lxl=-50,100,0)*x; ma3:= ma(c,3); c0:=ref(c,2)*0.865; c1:=ref(c,13)*0.772; bot:=MIN(c0,c1); hsl:=100*vol/capital*x; ma13:=ma(c,13)*x; cxc:=if((c-bot)/c<3/100 and sum(hsl,5)/5<1.8,1,0); 满仓:=if(cxc>0 and (lxl<0 or lgl>0),10,0); Var1:=INDEXC; Var2:=MA(Var1,6); Var3:=MA(Var1,24); Var4:=MA(Var1,32); Var5:=MA(Var1,62); Var6:=MA(Var1,105); Var7:=Var5<REF(Var5,1) AND Var6<REF(Var6,1) AND Var5<Var6*0.98; Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095; Var9:=Var2>Var1*0.95; VarA:=CLOSE/MA(CLOSE,48)*100<67; VarB:=CLOSE/MA(CLOSE,50)*100<69; VarC:=HIGH>LOW*1.078; VarD:=VarC AND COUNT(VarC,4)>2; 丰收:=VarD AND (VarA OR VarB) or Var7 AND Var8 AND Var9 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)); Var10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10); 增减:=Var10*5; XG:=增减>16; 满仓 AND XG AND 丰收; |
