以下是通达信擒牛指标---神龙擒牛指标公式源码通达信擒牛指标---神龙擒牛指标公式源码: A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; RCC:=DYNAINFO(3); S2:=SMA(C,3,1); S6:=SMA(C,5,1); DK:=2*(S2-S6); STICKLINE(DK 0,RCC,RCC+DK,0,1),COLORRED; STICKLINE(DK 0,RCC,RCC+DK,0,1),COLORCYAN; 主力成本:EMA(X,13),COLORFF00FF,LINETHICK0; 短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00; IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2; IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2; IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE; DRAWKLINE(HIGH,OPEN,LOW,CLOSE); MA5:=MA(C,5); MA10:=MA(C,10); MA30:=MA(C,30); FA:=BARSLAST(CROSS(MA10,MA5))ANDCROSS(MA5,MA10); FB:=FAANDMA5 MA30ANDMA10 MA30ANDMA10 REF(MA10,1); DRAWTEXT(FB,L-0.58, ★红牛 ),COLORRED; V1:=EMA(CLOSE,5); V2:=EMA(EMA(CLOSE,90)*1.01,10); DRAWTEXT(CROSS(V1,V2),V1+0.05, 牛起步 ),COLOR00FF00; VAR1:=LLV(LOW,21); VAR2:=HHV(HIGH,21); AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5); AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13); AB:=CROSS(AK1,AK); DRAWTEXT((AB=1),(LOW*0.99), ○牛窝 ),COLORYELLOW; AA1:=AMOUNT/V; BB1:=L AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100 DD1:=L MA(C,5)*0.921; EE1:=V MA(V,5)*1.5; 老鼠仓:=BB1ANDCC1ANDDD1ANDEE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.99, 老鼠仓 ),COLOR0099FF; VAR3AA:=IF((CLOSE REF(CLOSE,1)),88,0); VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1)) 1.05)AND((HIGH)/(CLOSE) 1.01)AND(VAR3AA 0),91,0); DRAWTEXT(FILTER((VAR4AA 90),45),(LOW)*(0.93), ★大胆搏 ),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA 90),35),(LOW)*(0.99000001), ★加仓 ),COLOR00FFFF; A1AA:=9; A2AA:=(REF(CLOSE,A1AA+1) CLOSE); DRAWTEXT(FILTER((A2AA -0.5),84),(HIGH)*(1.05), 小心变盘 ),COLORFFFFFF; VAR6:=REF(C,1); VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100; DRAWTEXT(CROSS(82,VAR7),H*1.01, ▼逃顶 ),COLORYELLOW; 跳空率:(O-REF(C,1))/REF(C,1)*100,COLORmaGENTA,NODRAW; 今板:=DYNAINFO(3)*1.1,DOTLINE,COLORYELLOW,NODRAW; 低1:=REF(LLV(L,150),3); 标底:=REFDATE(低1,DATE)*0.9; Q:=-100*(HHV(H,10)-C)/(HHV(H,10)-LLV(L,10))+100,NODRAW; Q1:=-100*(HHV(H,6)-C)/(HHV(H,6)-LLV(L,6))+100,NODRAW; Q上:=Q =REF(Q,1); Q下:=Q REF(Q,1); Q1上:=Q1 =REF(Q1,1); Q1下:=Q1 REF(Q1,1); TJ01:=Q1 =80ANDQ1上; TJ:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN)); 买盘:=IF(CLOSE OPEN,TJ*(HIGH-LOW),IF(CLOSE OPEN,TJ*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 卖盘:=IF(CLOSE OPEN,TJ*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,TJ*(HIGH-LOW),VOL/2)); 买增:=买盘 =REF(买盘,1); 卖减:=卖盘 =REF(卖盘,1); 正量:=买盘/VOL*100; 增量:=正量 =REF(正量,1); 正量比:=正量/50; TJ02:=正量 =80AND增量AND正量比 =1.5ANDREF(正量,1) {AND卖减} 分水岭:=EMA(((SLOPE(C,22)*20)+C),55),NODRAW; 操作线:=分水岭-(EMA(C,1)-分水岭); 操作辅线:=分水岭-(EMA(C,3)-分水岭); 开盘比:O/分水岭,NODRAW; AA:=REF(操作线,1)/操作线; 背离:IF(AA 1,AA,1),COLORYELLOW,NODRAW; 反背离:背离/REF(背离,1),COLORYELLOW,NODRAW; TJ03:=背离 =REF(背离,1)AND背离 =1.02AND分水岭 =操作线;{开盘比 =1.09AND} 散筹:=(WINNER(C*1.1)-WINNER(C*0.90)); 庄筹:=WINNER(C); 利筹比:=庄筹/散筹,NODRAW; 散出:=散筹 =REF(散筹,1); 散出率:=REF(散筹,1)/散筹; TJ04:=(利筹比 =2AND散出)OR散出率 =1.3; 成本:COst(50),COLORWHITE; 昨收:=REF(C,1),COLORWHITE,NODRAW; 突破:=昨收*1.1 =COST(90); 牛:=TJ01ANDTJ02ANDTJ03ANDTJ04AND突破; 剔跳空:=(O-REF(C,1))/REF(C,1)*100 涨幅:=(C-REF(C,1))/REF(C,1)*100; 昨涨幅:=REF(涨幅,1); TJ05:=剔跳空AND涨幅 =3.2AND昨涨幅 =6.5; TJ005:=剔跳空AND涨幅 =6.2AND昨涨幅 =6.5; 可能涨停:=TJ01ANDTJ02ANDTJ03ANDTJ04ANDTJ05,COLORYELLOW,NODRAW; 追涨:=TJ01ANDTJ02ANDTJ03ANDTJ04ANDTJ005,COLORWHITE,NODRAW; {条件}佛光乍现:=TJ01ANDTJ02ANDTJ03ANDTJ04AND剔跳空AND昨涨幅 =6.5; DRAwrECTREL(0,0,999,990,RGB(188,168,168)); DRAWRECTREL(0,0,999,100,RGB(90,0,0)); DRAWBAND(COST(50),RGB(0,0,0),标底,RGB(0,0,255)); DRAWBAND(COST(50),RGB(255,160,255),COST(60),RGB(118,160,255)); DRAWBAND(COST(60),RGB(255,120,255),COST(70),RGB(98,120,255)); DRAWBAND(COST(70),RGB(255,80,255),COST(80),RGB(78,80,255)); DRAWBAND(COST(80),RGB(255,40,255),COST(90),RGB(58,0,255)); STICKLINE(C 0,COST(50),标底,0,1),COLORBLUE; 利筹:=庄筹 IF(操作辅线 =REF(操作辅线,1)AND操作辅线 =分水岭,标底*1.06,标底),COLORWHITE,LINETHICK3; IF(利筹,分水岭*0.96,分水岭),COLORYELLOW,LINETHICK2; 标底线:标底,COLORGREEN,LINETHICK3; 底线1:=标底*0.83,COLORGREEN,LINETHICK2; 底线2:=底线1*0.8,COLORGREEN,LINETHICK2; DRAWBAND(标底,RGB(138,138,138),底线2,RGB(0,0,255)); 界线:分水岭,COLORGREEN,LINETHICK2; IF(分水岭 =REF(分水岭,1),分水岭,DRAWNULL),COLORRED,LINETHICK3; STICKLINE(ISLASTBAR,DYNAINFO(3),DYNAINFO(3)*1.1,2.8,-1),COLORWHITE; DRAWKLINE(H,O,L,C); STICKLINE(佛光乍现ANDC =REF(C,1),H,L,0,0),COLOR0099FF; STICKLINE(佛光乍现ANDC =REF(C,1),C,O,3.2,0),COLOR0000AA; STICKLINE(佛光乍现ANDC =REF(C,1),C,O,2.7,0),COLOR0000DD; STICKLINE(佛光乍现ANDC =REF(C,1),C,O,2.1,0),COLOR0022FF; STICKLINE(佛光乍现ANDC =REF(C,1),C,O,1.5,0),COLOR0066FF; STICKLINE(佛光乍现ANDC =REF(C,1),C,O,0.9,0),COLOR0099FF; STICKLINE(佛光乍现ANDC =REF(C,1),C,O,0.3,0),COLOR00ddfF; 五:COST(50),COLORYELLOW,LINETHICK1; 六:COST(60),COLORYELLOW,LINETHICK1; 七:COST(70),COLORYELLOW,LINETHICK1; 八:COST(80),COLORYELLOW,LINETHICK1; 顶:COST(90),COLORCYAN,LINETHICK2; IF(牛AND佛光乍现,顶,DRAWNULL),POINTDOT,COLORWHITE,LINETHICK9; IF(牛AND佛光乍现,顶,DRAWNULL),POINTDOT,COLORRED,LINETHICK5; DRAWBAND(底线2+散筹*(标底-底线2),RGB(0,0,0),底线2,RGB(0,0,255)); STICKLINE(C 0,底线2+散筹*(标底-底线2),底线2,0,0),COLORBLUE; 散:底线2+散筹*(标底-底线2),COLORGREEN,LINETHICK2; 庄:底线2+庄筹*(标底-底线2),COLORRED,LINETHICK2; STICKLINE(背离 =REF(背离,1)AND背离 =1.018AND反背离 =1.018AND牛,散,底线2,0.8,0),COLORYELLOW; IF(佛光乍现AND背离 =1.018,L*0.98,DRAWNULL),crOSSDOT,LINETHICK6,COLORMAGENTA; IF(佛光乍现AND背离 =1.018,L*0.98,DRAWNULL),POINTDOT,LINETHICK4,COLORWHITE; IF(佛光乍现AND背离 =1.023,L*0.95,DRAWNULL),CROSSDOT,LINETHICK6,COLORMAGENTA; IF(佛光乍现AND背离 =1.023,L*0.95,DRAWNULL),POINTDOT,LINETHICK4,COLORWHITE; IF(佛光乍现AND背离 =1.028,L*0.92,DRAWNULL),CROSSDOT,LINETHICK6,COLORMAGENTA; IF(佛光乍现AND背离 =1.028,L*0.92,DRAWNULL),POINTDOT,LINETHICK4,COLORWHITE; IF(佛光乍现AND背离 =1.033,L*0.89,DRAWNULL),CROSSDOT,LINETHICK6,COLORMAGENTA; IF(佛光乍现AND背离 =1.033,L*0.89,DRAWNULL),POINTDOT,LINETHICK4,COLORWHITE; IF(佛光乍现AND背离 =1.038,L*0.86,DRAWNULL),CROSSDOT,LINETHICK6,COLORMAGENTA; IF(佛光乍现AND背离 =1.038,L*0.86,DRAWNULL),POINTDOT,LINETHICK4,COLORWHITE; {IF(CROSS(庄筹,散筹),分水岭,DRAWNULL),POINTDOT,COLORWHITE,LINETHICK9; IF(CROSS(庄筹,散筹),分水岭,DRAWNULL),POINTDOT,COLORRED,LINETHICK5;} 操作:=操作线,COLORWHITE,LINETHICK1; DRAWTEXT(牛AND佛光乍现,L*0.96, ←牛? ),COLORWHITE; DRAWTEXT(追涨,L*0.90, ←抢? ),COLORWHITE; DRAWRECTREL(0,100,260,610,RGB(18,8,8)); DRAWTEXT_FIX(1,0.01,0.01,0,HYBLOCK),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.35,0.01,1, 涨幅: ),COLORYELLOW; DRAWNUMBER_FIX(ISLASTBAR,0.45,0.01,1,涨幅),COLORWHITE; DRAWNUMBER_FIX(ISLASTBAR,0.05,0.12,1,INTPART(REF(Q,1))),COLORWHITE; DRAWTEXT_FIX(ISLASTBARANDQ上,0.1,0.12,1, Q↑ ),COLORYELLOW; DRAWTEXT_FIX(ISLASTBARANDQ下,0.1,0.12,1, Q↓ ),COLORGREEN; DRAWNUMBER_FIX(ISLASTBAR,0.17,0.12,1,INTPART(Q)),COLORYELLOW; DRAWTEXT_FIX(ISLASTBARANDQ上ANDQ =80,0.23,0.12,1, ★ ),COLORYELLOW; DRAWNUMBER_FIX(ISLASTBAR,0.05,0.2,1,INTPART(REF(Q1,1))),COLORWHITE; DRAWTEXT_FIX(ISLASTBARANDQ1上,0.1,0.2,1, Q1↑ ),COLORYELLOW; DRAWTEXT_FIX(ISLASTBARANDQ1下,0.1,0.2,1, Q1↓ ),COLORGREEN; DRAWNUMBER_FIX(ISLASTBAR,0.17,0.2,1,INTPART(Q1)),COLORYELLOW; DRAWTEXT_FIX(ISLASTBARANDQ1上ANDQ1 =80,0.23,0.2,1, ★ ),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.07,0.28,1, 背离 ),COLORWHITE; DRAWNUMBER_FIX(ISLASTBAR,0.18,0.28,1,背离),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.07,0.38,1, 反背离 ),COLORWHITE; DRAWNUMBER_FIX(ISLASTBAR,0.18,0.38,1,反背离),COLORYELLOW; DRAWTEXT_FIX(ISLASTBARAND买增AND卖减,0.23,0.28,1, ★ ),COLORYELLOW; DRAWTEXT_FIX(ISLASTBARAND可能涨停,0.16,0.50,1, 可能涨停 ),COLORYELLOW; 回归斜率线A:=EMA(SLOPE(C,4)*20+C,42); 经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 经典K:=SMA(经典RL,3,1);经典D:=SMA(经典K,3,1);经典J:=3*经典K-2*经典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))); MAHL2:=IF(EMA(C,2) 回归斜率线AANDMAHL1 0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A} MAHL3:=IF(EMA(C,2) 回归斜率线AANDMAHL1 0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A} 回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154)); 上线:=SMA(C,6.5,1); 一号支撑线:SMA(C,14.5,1); 上线1:=SMA(C,3,1); 一号支撑线1:=SMA(C,8,1); 上线2:=SMA(C,3.5,1); DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08, 洗盘 ),COLOR00FF00; BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4; UPR:=BBI+3*STD(BBI,13),LINETHICK2; DWN:=BBI-3*STD(BBI,13); 安全:=MA(CLOSE,55),LINETHICK2; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(CROSS(82,RSI)ANDCLOSE 上线1,HIGH*1.04, 减仓 ),COLORFF9966,LINETHICK2; A7:=(2*C+H+L)/4; 操作:MA(A7,5),COLORBLUE,LINETHICK2; 操作1:=MA(A7,5)*1.03,LINETHICK2; 操作2:=MA(A7,5)*0.97,LINETHICK2; DRAWTEXT(CROSS(上线1,上线)AND上线1 操作,LOW*0.92, 买进 ),COLORYELLOW; VAR1:LLV(A7,21); VAR2:HHV(A7,30); DRAWTEXT(CROSS(上线1,操作)AND上线1 一号支撑线AND上线1 一号支撑线1AND上线1 上线ANDCLOSE VAR1,LOW*0.98, 见底 ),COLORYELLOW; YCX:=操作 =REF(操作,1); H1:=MAX(MAX(上线,一号支撑线1),一号支撑线); L1:=MIN(MIN(上线,一号支撑线1),一号支撑线); DRAWTEXT(CROSS(上线1,一号支撑线1)AND上线1 操作,LOW*0.98, 全仓 ),COLORYELLOW; SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7); SD:=EMA(0.667*REF(SK,1)+0.333*SK,5); M1:=1000*操作/一号支撑线 =1015AND1000*操作/一号支撑线 =975; M2:=1000*一号支撑线1/一号支撑线 =1020AND一号支撑线1/一号支撑线 =980; M3:=1000*上线/一号支撑线 =1015AND上线/一号支撑线 =985; DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),13)/13 6/10AND COUNT(SK SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE =OPEN,4)AND REF(CLOSE OPEN,3)ANDREF(CLOSE OPEN,2)ANDREF(OPEN CLOSE,1)AND OPEN REF(CLOSE,1),1,0),LOW*0.94, 买进 ),COLORYELLOW; D:=MA(CLOSE,89)-MA(CLOSE,10)/3; DRAWTEXT(IF(CLOSE DANDVOL/240 MA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.08 ANDCLOSE MA(CLOSE,13)*1.3,1,0),LOW*0.88, 抄底 ),COLORBROWN; RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100; K:=SMA(RSV,3,1); D1:=SMA(K,3,1); J:=3*K-2*D1; VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点} VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点} E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100; F:=MA(E,3)+0.03; G:=MA(E,1); DRAWICON(CROSS(F,G)ANDJ 65,HIGH*1.02,15),COLORGREEN; DRAWICON(CROSS(G,F),LOW*0.9,9),COLORYELLOW; DRAWTEXT(CLOSE OPENANDH1 CANDO L1ANDYCXANDCROSS(上线1,操作)ANDLOW VAR1AND上线1 一号支撑线ANDJ 90,LOW*0.9, 主升 ),COLORRED; DRAWTEXT(CROSS(上线1,操作)ANDM1ANDM2ANDM3,LOW*0.94, 买进 ),COLORYELLOW; DRAWTEXT(CLOSE OPENAND上线 一号支撑线1AND一号支撑线1 一号支撑线ANDCLOSE MA(CLOSE,一号支撑线)AND操作 =REF(CLOSE,操作)ANDCROSS(上线1,操作)ANDLOW VAR1ANDJ 90,LOW*0.9, 主升 ),COLORRED; DRAWTEXT(CLOSE OPENAND操作 上线AND上线 一号支撑线1AND一号支撑线1 一号支撑线ANDCROSS(上线1,操作)ANDLOW VAR1ANDJ 90,LOW*0.86, 回踩买进 ),COLORRED; DRAWTEXT(CLOSE OPENANDCROSS(上线,一号支撑线)ANDLOW VAR1ANDJ 90,LOW*0.86, 回踩买进 ),COLORRED; STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,0),COLORRED; STICKLINE(C OANDC REF(C,1),C,O,3,0),COLORFFCC00; STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,3,0),COLOR000055;{红K}; STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,2.7,0),COLOR000077;{红K}; STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,2.1,0),COLOR000099; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF; STICKLINE(CLOSE=REF(CLOSE,1),H,L,3,1),COLOR999999; STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,0),COLORWHITE; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF; STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN; STICKLINE(C REF(C,1)ANDC O,C,O,3,0),COLORFFCC00; STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,3,0),COLOR990000; STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,2.7,0),COLORCC0000; STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,2.1,0),COLORFF4400; STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,1.5,0),COLORFF8800; STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,0.9,0),COLORFFCC00; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,3.2,0),COLORBB00FF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,2.7,0),COLORFF33FF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,2.1,0),COLORFF66FF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,1.5,0),COLORFF99FF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,0.9,0),COLORFFBBFF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,0.3,0),COLORFFDDFF;通达信擒牛指标---神龙擒牛指标公式截图