以下是通达信股海擒牛指标公式源码和使用说明
通达信股海擒牛指标公式源码:
stICKLINE(C,90,90,0.9,0.9),COLOR883333;
STICKLINE(C,10,10,0.9,0.9),COLOR883333;
:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
RSV1:=(C-ma(C,4))/MA(C,4)*100;
VAR2:=REF(LOW,1);
VAR3:=SMA(Abs(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8 100,100,VAR8);
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
:=EMA(J,6),COLORYELLOW;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
AA6:=SMA(AA3,21,8);
买观注:STICKLINE(走势-AA6 -65,0,7,15,1);
DRAWICON(FILTER(J REF(J,1)AND走势 =REF(走势,1)AND走势 25,5),走势,1);
卖观注:STICKLINE(走势-AA6 85,98,90,15,1),COLORFFFF00;
DRAWICON(FILTER(J REF(J,1)AND走势 =REF(走势,1)ANDJ 85,5),J,2);
吸筹:STICKLINE(VAR9 -120,50,50+(VAR9/2),8,1),COLORRED;
CDMA:EMA(EMA(RSV1,7),7)*8,NODRAW,COLORWHITE;
STICKLINE(CDMA =0ANDCDMA =REF(CDMA,1),50,50+CDMA,2.5,0),COLORDD55CC;
STICKLINE(CDMA =0ANDCDMA =REF(CDMA,1),50,50+CDMA,2.5,1),COLORDD55CC;
STICKLINE(CDMA =0ANDCDMA =REF(CDMA,1),50,50+CDMA,2.5,1),COLOR00D080;
STICKLINE(CDMA =0ANDCDMA =REF(CDMA,1),50,50+CDMA,2.5,0),COLOR00D080;
快线:(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2,COLOR333333;
散户线:散户,COLORFFFFFF,LINETHICK1;
主力线:主力,COLORYELLOW;
走势线:走势,COLORRED,LINETHICK3;
DRAWTEXT(ISLASTBAR,散户线,'←散户线'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,主力线,'←主力线'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,走势线,'←走势线'),COLORRED;
关注低买:IF(90 散户ANDcrOSS(90,散户),98,0),COLORMAGENTA,STICK,NODRAW;
{高抛低吸:IF(散户 10ANDCROSS(10,散户),20,0),COLORGREEN,STICK,NODRAW;}
风险:COUNT(".RSI1"(6,12,24) 80,3)=3ANDCROSS("RSI.RSI2"(6,12,24),79.5),NODRAW;
观注顶:(散户 8AND主力 90AND走势 90ANDCDMA =REF(CDMA,1)AND散户线),COLORGREEN,NODRAW;
DRAWTEXT(观注顶,-1,'◆'),COLORGREEN;
DRAWTEXT(风险,95,'←风险'),COLOR00FFFF;
STICKLINE(关注低买,0,100,0,-1),COLORMAGENTA;
{STICKLINE(高抛低吸,0,100,0,-1),COLORGREEN;};
HJ_1:=BARSCOUNT(CLOSE)
HJ_2:=(CLOSE-OPEN)/OPEN;
HJ_3:=(OPEN-LOW)/OPEN;
HJ_4:=CLOSE OPENANDHJ_2 0.02ANDHJ_3 0.02;
HJ_5:=(2*CLOSE+HIGH+LOW)/4;
HJ_6:=MA(HJ_5,5);
HJ_7:=MA(HJ_5,4);
HJ_8:=MA(HJ_5,5)*1.03;
HJ_9:=MA(HJ_5,5)*0.97;
HJ_10:=LLV(HJ_5,21);
HJ_11:=HHV(HJ_5,21);
HJ_12:=EMA(LOW,30)*0.85;
HJ_13:=EVERY(CLOSE HJ_6,3);
买点一:REF(HJ_13,1)ANDCROSS(CLOSE,HJ_6)ANDMA(CLOSE,5) MA(CLOSE,10)ANDHJ_1,COLORYELLOW,LINETHICK2;
STICKLINE(买点一,0,0.5,2,0),COLOR0000FF;
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,13);
MA3:MA(CLOSE,18);
MA4:MA(CLOSE,60);
三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2)) =REF(L,3);
三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2)) REF(V,3));
三日价涨A:=C =REF(C,1);
三日价涨B:=C REF(C,1);
三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2)) =REF(L,3);
TIM:=IF(DATE 1140214,1,0);
缩倍柱:=(VOL*1.95 =REF(VOL,1))*TIM;
百日低量:=(VOL=LLV(VOL,100))*TIM;
倍量柱:=C REF(C,1)*1.04AND(VOL =1.9*REF(VOL,1))*TIM;
四日前倍量柱:=(REF(VOL,3) 1.9*REF(VOL,4))*TIM;
四日前高量柱:=(REF(VOL,3) =REF(VOL,4)ANDREF(VOL,3) 1.9*REF(VOL,4)AND三日量缩)*TIM;
前三引用不成立:=COUNT(REF(四日前倍量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0ANDCOUNT(REF(四日前高量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0;
倍量:=四日前倍量柱AND三日量缩AND三日不破AND三日价涨AAND前三引用不成立;
高量黄金柱:=四日前高量柱AND三日量缩AND三日不破AND三日价涨AAND前三引用不成立;
:=倍量OR高量黄金柱;
次倍量黄金柱:=NOT()AND四日前倍量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立;
次高量黄金柱:=NOT()AND四日前高量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立;
次黄金柱:=次倍量黄金柱OR次高量黄金柱;
准倍量黄金柱:=NOT(OR次黄金柱)AND四日前倍量柱AND((三日量缩AND三日价涨C)OR(COUNT(倍量柱,3) =1AND三日不破))AND前三引用不成立;
准高量黄金柱:=NOT(OR次黄金柱)AND四日前高量柱AND(三日量缩AND三日价涨C)AND前三引用不成立;
准黄金柱:=准倍量黄金柱OR准高量黄金柱;
倍量将军柱:=NOT(OR次黄金柱OR准黄金柱)AND四日前倍量柱AND三日不破AND三日价涨AAND前三引用不成立;
高量:=NOT(OR次黄金柱OR准黄金柱)AND四日前高量柱AND三日不破AND三日价涨AAND前三引用不成立;
将军柱:=倍量将军柱OR高量;
BACKSET104:=BACKSET(将军柱,4);
FILTER104:=FILTER(BACKSET104,3);
DRAWTEXT(FILTER104,LOW*0.986,'↖擒牛'),COLORRED;
VOL5:=MA(VOL,5);
VOL10:=MA(VOL,10);
通达信股海擒牛指标公式截图