飞狐犀牛王/犀牛副图指标
源码
{犀牛王}
Var0:=100*(CLOSE-ma(AMOUNT/(100*vol),5))/ma(AMOUNT/(100*vol),5);
Var1:=(HIGH+LOW+CLOSE*2)/4;
Var2:=((Var1-EMA(Var1,21))/STD(Var1,21)*100+200)/4;
Var3:=(EMA(Var2,5)-25)*1.56;
Var4:=EMA(EMA(Var3,2)*1.22,2);
Var5:=3*EMA(Var3,2)*1.22-2*Var4;
Var6:=EMA((Var1-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,13);
Var7:=EMA(0.667*REF(Var6,1)+0.333*Var6,2);
Var8:=EMA(Var1,13)-EMA(Var1,21);
Var9:=2*(Var8-EMA(Var6,2))*3.8;
Var10:=Var9 > REF(Var9,1) AND Var6 < 63 AND Var7 < 63 AND EMA(Var3,2)*1.22 < 63 AND Var4 < 63 AND Var5 < 63 AND CROSS(Var5,EMA(Var3,2)*1.22) AND FINANCE(33)> 0.01 AND FINANCE(34)> 1 AND REF(CLOSE,23)/CLOSE > 1.2 AND REF(CLOSE,10)/CLOSE < 1.5
Var11:=MIN(ref(CLOSE,2)*0.865,ref(CLOSE,13)*0.772);
Var12:=if((CLOSE-Var11)/CLOSE < 4/100 and sum(100*vol/capital,5)/5 < 1.8 and WINNER(CLOSE)*100 < 0.1,1,0);
Var13:=MA(CLOSE,80)-MA(CLOSE,10)/3;
Var14:=CLOSE < Var13 and VOL/240 > MA(VOL,5)/240 AND CLOSE > REF(CLOSE,1)*1.08 AND CLOSE < MA(CLOSE,13)*1.3;
Var15:=Var0<-10
Var16:=EMA((Var1-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,13);
Var17:=EMA(0.667*REF(Var16,1)+0.333*Var16,2);
犀牛王:Var12 > 0 OR Var14 > 0 OR Var15 > 0;
STICKLINE((Var16-Var17)*5>=0,0,(Var16-Var17)*5*1,4,0),color0000ff;
STICKLINE((Var16-Var17)*5>=0,0,(Var16-Var17)*5*0.8,4,0),color0066ff;
STICKLINE((Var16-Var17)*5>=0,0,(Var16-Var17)*5*0.6,4,0),color0099ff;
STICKLINE((Var16-Var17)*5>=0,0,(Var16-Var17)*5*0.4,4,0),color00ccff;
STICKLINE((Var16-Var17)*5>=0,0,(Var16-Var17)*5*0.2,4,0),color00ffff;
STICKLINE((Var16-Var17)*5<=0,0,(Var16-Var17)*5*1,4,0),COLORGREEN;
STICKLINE((Var16-Var17)*5<=0,0,(Var16-Var17)*5*0.8,4,0),COLOR33CC00;
STICKLINE((Var16-Var17)*5<=0,0,(Var16-Var17)*5*0.6,4,0),COLOR339900;
STICKLINE((Var16-Var17)*5<=0,0,(Var16-Var17)*5*0.4,4,0),COLOR337700;
STICKLINE((Var16-Var17)*5<=0,0,(Var16-Var17)*5*0.2,4,0),COLOR005500;
STICKLINE(Var12 > 0 OR Var10 > 0 OR Var14 > 0 OR Var15 > 0,0,5,4,0),linethick4,STICK,COLOR0000FF;
{犀牛指标}
Var1:=MA(AMOUNT/(100*VOL),5);
Var2:=MA(AMOUNT/(100*VOL),13);
Var3:=MA(AMOUNT/(100*VOL),34);
Var4:=DMA(CLOSE,VOL/CAPITAL);
CYS13: (CLOSE-Var2)/Var2*100, POINTDOT;
ABS(WINNER(CLOSE)-WINNER(OPEN))*70, VOLSTICK;
STICKLINE(CYS13>0,0,CYS13,6,0);
STICKLINE(CYS13<=0,0,CYS13,6,0);
STICKLINE(CROSS(CLOSE,Var3),0,15.82,6,0);
STICKLINE(CROSS(CLOSE,Var4),0,15.82,6,0);
STICKLINE(CROSS(Var2,Var4),0,15.82,6,0);
Var5:=WINNER(CLOSE)*100;
Var6:=100*VOL/CAPITAL;
STICKLINE(Var5>=90 AND Var6<3,CYS13,15.82,6,0);