红顶绿底之买入选股指标公式

RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;

K0:=SMA(RSV,3,1);

K:=K0;

D:=SMA(K0,2,1);

j1:=(3*k0-2*d);

j2:=MA(j1,2);

Var5:=AMOUNT/vol/100;

Var6:=IF(Var5>CLOSE*1.1,CLOSE,IF(Var5<CLOSE*0.9,CLOSE,Var5));

Var7:=100*WINNER(Var6);

Var8:=MA(Var7,8);

Var9:=HHV(CLOSE,0)/Var8;

VarA:=IF(Var9>2.5,-10,Var9);

VarB:=IF(VarA>1,-10,VarA);

底限:=VarB;

Var10:=HHV(HIGH,0)/Var8*4.5*100;

Var11:=IF(Var10>100,103,Var10);

Var15:=REF(CLOSE,1);

短线:=SMA(MAX(CLOSE-Var15,0),2,1)/SMA(Abs(CLOSE-Var15),2,1)*100;

买入: IF(crOSS(j1,j2) and 底限=-10 and j2<20 or CROSS(j1,j2) and 短线<5,60,19)