指标源码:
A1:=DRAWLINE(HIGH>=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),H,1)COLOR00FFFF,LINETHICK2;
INLINE:=EMA(C,250);
CHIPS:INLINE-(EMA(C,3)-INLINE),COLOR008800,LINETHICK2,DOTLINE;
HH0:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,NODRAW;
黄牛线:EMA(HH0,90),NODRAW;
离合3:黄牛线-((C-黄牛线)*C-黄牛线)/黄牛线,LINETHICK2,COLOR666600,DOTLINE;
通达信犀牛捉妖指标源码公式
犀牛OBV 犀牛分时买卖 犀牛牛一 犀牛牛二 及2个选股公式
指标源码:
{公式名称: 犀牛一号}
XA_1:=120;
XA_2:=MA(CLOSE,XA_1);
XA_3:=POW(CLOSE-XA_2,2);
XA_4:=MA(XA_3,XA_1);
XA_5:=SQRT(XA_4);
XA_6:=XA_2+2*XA_5;
XA_7:=XA_2-2*XA_5;
XA_8:=REF(XA_2,1);
XA_9:=REF(XA_6,1);
XA_10:=REF(XA_7,1);
XA_11:=COUNT(CLOSE>XA_9,20)>=1;
XA_12:=(MIN(CLOSE,OPEN)-LOW)/LOW*100;
XA_13:=(MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/MIN(CLOSE,OPEN)*100;
XA_14:=(HIGH-MAX(CLOSE,OPEN))/MAX(CLOSE,OPEN)*100;
XA_15:=MA(CLOSE,13);
XA_16:=MA(CLOSE,24);
XA_17:=MA(CLOSE,55);
XA_18:=MA(CLOSE,120);
XA_19:=MA(CLOSE,8);
XA_20:=XA_17>XA_18 AND XA_17>REF(XA_17,1) AND XA_18>=REF(XA_18,1);
XA_21:=CLOSE-REF(CLOSE,12);
XA_22:=MA(XA_21,6);
XA_23:=CROSS(XA_21,XA_22);
XA_24:=COUNT(XA_23,2)>=1;
XA_25:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
XA_26:=SMA(XA_25,3,1);
XA_27:=SMA(XA_26,3,1);
XA_28:=3*XA_26-2*XA_27;
XA_29:=CROSS(XA_28,XA_27);
XA_30:=COUNT(XA_29,2)>=1;
XA_31:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
XA_32:=SUM(IF(CLOSE=REF(CLOSE,1),0,XA_31),0);
XA_33:=MA(XA_32,30);
XA_34:=OBV;
XA_35:=XA_34>REF(HHV(XA_34,30),1);
XA_36:=XA_32>XA_33;
XA_37:=HIGH>=REF(CLOSE,1) *1.09955;
XA_38:=COUNT(XA_37,100)>=1;
XA_39:=EMA(CLOSE,12)-EMA(CLOSE,26);
XA_40:=EMA(XA_39,9);
XA_41:=CROSS(XA_40,XA_39) AND XA_40>0 AND XA_39>0;
XA_42:=COUNT(XA_41,5)>=1;
XA_43:=CROSS(MA(VOL,5),MA(VOL,89));
XA_44:=REF(CLOSE,1);
XA_45:=IF((CLOSE-XA_44)*100/XA_44>=10-0.01*100/XA_44,1,0);
XA_46:=COUNT(XA_45,100)>=1;
XA_47:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
XA_48:=(HIGH-CLOSE)/REF(CLOSE,1)*100;
XA_49:=ATAN((MA(CLOSE,3)/REF(MA(CLOSE,3),1)-1)*100)*57.299999;
XA_50:=ATAN((MA(CLOSE,20)/REF(MA(CLOSE,20),1)-1)*100)*57.299999;
XA_51:=ATAN((MA(CLOSE,30)/REF(MA(CLOSE,30),1)-1)*100)*57.299999;
XA_52:=VOL>MA(VOL,89);
XA_53:=XA_52=1 AND BARSLAST(REF(XA_52=1,1))>=6;
XA_54:=WINNER(CLOSE)*100;
XA_55:=VOL>MA(VOL,30);
XA_56:=REF(XA_55,1) AND VOL<MA(VOL,89);
XA_57:=COUNT(XA_56,4)>=1;
XA_58:=(XA_9-XA_16)/REF(CLOSE,1)*100;
CLOSE>XA_9 AND LOW<XA_9 AND XA_54>95 AND XA_47>7 AND XA_58<15;
{公式名称: 犀牛牛二}
XA_1:=(3*CLOSE+OPEN+LOW+HIGH)/6;
XA_2:=(20*XA_1+19*REF(XA_1,1)+18*REF(XA_1,2)+17*REF(XA_1,3)+16*REF(XA_1,4)+15*REF(XA_1,5)+14*REF(XA_1,6)+13*REF(XA_1,7)+12*REF(XA_1,8)+11*REF(XA_1,9)+10*REF(XA_1,10)+9*REF(XA_1,11)+8*REF(XA_1,12)+7*REF(XA_1,13)+6*REF(XA_1,14)+5*REF(XA_1,15)+4*REF(XA_1,16)+3*REF(XA_1,17)+2*REF(XA_1,18)+REF(XA_1,20))/210;
XA_3:=MA(XA_2,5);
XA_4:=MA(CLOSE,4);
XA_5:=MA(CLOSE,13);
XA_6:=MA(CLOSE,24);
XA_7:=MA(CLOSE,30);
XA_8:=MA(CLOSE,120);
XA_9:=XA_5>XA_6 AND XA_6>XA_7 AND XA_7>XA_8 AND XA_5>REF(XA_5,1) AND XA_6>REF(XA_6,1) AND XA_7>REF(XA_7,1) AND XA_8>=REF(XA_8,1);
XA_10:=REF(CLOSE,1);
XA_11:=IF((CLOSE-XA_10)*100/XA_10>=10-0.01*100/XA_10,1,0);
XA_12:=REF(XA_11,1);
XA_13:=COUNT(XA_12,13)>=1;
XA_14:=ATAN((MA(CLOSE,30)/REF(MA(CLOSE,30),1)-1)*100)*57.299999;
XA_15:=ATAN((MA(CLOSE,13)/REF(MA(CLOSE,13),1)-1)*100)*57.29999937;
XA_9 AND CLOSE>XA_5 AND LOW<XA_5 AND CLOSE>OPEN AND XA_15>47 AND XA_13;
{公式名称: 犀牛OBV}
XA_1:=30;
XA_2:=30;
XA_3:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
XA_4:=SUM(IF(CLOSE=REF(CLOSE,1),0,XA_3),0);
XA_5:=MA(OBV,XA_1);
DRAWBAND(XA_5,RGB(0,0,80),XA_4,RGB(160,0,0));
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,XA_3),0);
MA30:MA(OBV,XA_1);