通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

打板神器选股指标公式

RSV:=((CLOSE – LLV(LOW,9))/(HHV(HIGH,9) – LLV(LOW,9)))*(100);

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

D:=SMA(K,3,1);

DIFF:=EMA(CLOSE,12) – EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

GVV:=EMA(CLOSE,12) – EMA(CLOSE,15);

AA1:=CROSS(K,D);

AA2:=CROSS(DIFF,DEA);

AA3:=CROSS(DIFF,0);

AA4:=CROSS(GVV,(-0.01));

MA5:=MA(CLOSE,5);

MA10:=MA(CLOSE,10);

MA20:=MA(CLOSE,20);

MA30:=MA(CLOSE,30);

MA60:=MA(CLOSE,60);

OK1:=(CLOSE  MA5) AND (CLOSE  MA10) AND (CLOSE  MA20) AND (CLOSE  MA30) AND ((LOW)*(0.9)  MA5) AND ((LOW)*(0.9)  MA10) AND ((LOW)*(0.9)  MA20) AND ((LOW)*(0.9)  MA30);

OK2:=(CLOSE  MA5) AND (CLOSE  MA10) AND (CLOSE  MA20) AND (CLOSE  MA30) AND (CLOSE  MA30) AND ((LOW)*(0.9)  MA5) AND ((LOW)*(0.9)  MA10) AND ((LOW)*(0.9)  MA20) AND ((LOW)*(0.9)  MA30) AND ((LOW)*(0.9)  MA60);

银疙瘩1:=AA1 AND (BARSLAST(AA2)  6) AND OK1;

银疙瘩2:=AA2 AND (BARSLAST(AA1)  6) AND OK1;

银疙瘩3:=AA3 AND (BARSLAST(AA1)  6) AND OK1;

银疙瘩4:=AA4 AND (BARSLAST(AA1)  6) AND OK1;

需要判研点:银疙瘩1 OR 银疙瘩2 OR 银疙瘩3 OR 银疙瘩4,COLORYELLOW;

银疙瘩5:=AA1 AND (BARSLAST(AA2)  6) AND OK2;

银疙瘩6:=AA2 AND (BARSLAST(AA1)  6) AND OK2;

银疙瘩7:=AA3 AND (BARSLAST(AA1)  6) AND OK2;

银疙瘩8:=AA4 AND (BARSLAST(AA1)  6) AND OK2;

重点判研点:银疙瘩5 OR 银疙瘩6 OR 银疙瘩7 OR 银疙瘩8,COLOR00FF00;

综合信号点:银疙瘩5 OR 银疙瘩6 OR 银疙瘩7 OR 银疙瘩8,COLORFF50FF;

N1:=5;N2:=10;

STICKLINE(C0,0,10,15,0),COLOR781816;

LLC:=REF(CLOSE,1);

RSI15:SMA(MAX(CLOSE-LLC,0),N1,1)/SMA

(ABS(CLOSE-LLC),N1,1)*10,COLORFF00FF,LINETHICK1;

RSI10:SMA(MAX(CLOSE-LLC,0),N2,1)/SMA

(ABS(CLOSE-LLC),N2,1)*10,COLOR00FFFF;

VAR21:=C-REF(C,1);

VAR22:=100*EMA(EMA(VAR21,6),6)/EMA(EMA(ABS(VAR21),6),6);

MA5:=EMA(C,5);

MA13:=EMA(C,13);

UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS

(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS

(MA5,MA13))+1),0),COLOR0000FF;

DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS

(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS

(MA13,MA5))+1),0),COLOR00FF00;

短牛:(LLV(VAR22,2)=LLV(VAR22,7) AND COUNT(VAR220,2)

AND CROSS(VAR22,MA(VAR22,2))) AND

REF(DOWN,1)REF(DOWN,2) AND UPREF(DOWN,1);

STICKLINE(UP,0,0.2,3,0),COLOR0000FF;

STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;

STICKLINE(短牛,0,8,2,0),COLOR000088;

STICKLINE(短牛,0,8,1,0),COLOR0000CC;

STICKLINE(短牛,0,8,0.22,0),COLOR0000FF;

DRAWTEXT(短牛,8,'短牛'),COLOR0000FF;

中牛:REF(DOWN,1)REF(DOWN,2) AND UPREF(DOWN,1) AND CHHV(H,21)*0.82;

STICKLINE(中牛,0,0.2,3,0),COLOR880088;

STICKLINE(中牛,0,7,1.5,0),COLORAA00AA;

STICKLINE(中牛,0,7,0.8,0),COLORCC00CC;

STICKLINE(中牛,0,7,0.2,0),COLORFF00FF;

DRAWTEXT(中牛,7,'中牛'),COLORFF00FF;

HR:=HHV(HIGH,55);

HRY:=LLV(LOW,55);

HRY11:=HR*HRY;

HRY33:=SQRT(HRY11);

大牛:REF(DOWN,1)REF(DOWN,2) AND UPREF(DOWN,1) AND CHRY33;

STICKLINE(大牛,0,0.2,3,0),COLOR008888;

STICKLINE(大牛,0,6,2,0),COLOR00AAAA;

STICKLINE(大牛,0,6,1,0),COLOR00CCCC;

STICKLINE(大牛,0,6,0.2,0),COLOR00FFFF;

DRAWTEXT(大牛,6,'大牛'),COLOR00FFFF;

LC:=REF(CLOSE,1);

RSI5:=((SMA(MAX((CLOSE – LC),0),5,1) / SMA(ABS((CLOSE – LC)),5,1)) * 100);

TR1:=SUM(MAX(MAX((HIGH – LOW),ABS((HIGH – REF(CLOSE,1)))),ABS((LOW – REF(CLOSE,1)))),10);

HD:=(HIGH – REF(HIGH,1));

LD:=(REF(LOW,1) – LOW);

DMP:=SUM(IF(((HD  0) AND (HD  LD)),HD,0),10);

DMM:=SUM(IF(((LD  0) AND (LD  HD)),LD,0),10);

PDI:=((DMP * 100) / TR1);

MDI:=((DMM * 100) / TR1);

ADX:=MA(((ABS((MDI – PDI)) / (MDI + PDI)) * 100),5);

AV:=(RSI5 + ADX);

DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);

WR10:=((100 * (HHV(HIGH,10) – CLOSE)) / (HHV(HIGH,10) – LLV(LOW,10)));

NEWVOL:=(RSI5 – WR10);

最佳买入:=(AV + NEWVOL);

最佳买入选股:=IF(CROSS(最佳买入,0),1,0);

VAR1:=SMA(最佳买入选股,3,1);

VAR2:=SMA(VAR1,3,1),COLOR0000FF;

VAR3:=SMA(VAR2,3,1),COLOR00FFFF;

建仓买点:IF(CROSS(VAR2,VAR3) AND (VAR240),1,0* 10000),COLORWHITE,NODRAW;

STICKLINE(建仓买点,0,2,2,0),COLORLINETHICK0;

STICKLINE(建仓买点,0.2,4.0,2,0),COLORLINETHICK0;

RSV:=(((CLOSE – LLV(LOW,9)) / (HHV(HIGH,9) – LLV(LOW,9))) * 50);

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

D:=SMA(K,3,1);

J:=3*K-2*D;

X:=LLV(J,2)=LLV(J,8);

最佳买入时机: IF(CROSS(J,3),1,0),COLORYELLOW;

STICKLINE(最佳买入时机,0,1,3,0),COLOR009999;

STICKLINE(最佳买入时机,0,1,2,0),COLOR00DDDD;

STICKLINE(最佳买入时机,0,1,1,0),COLOR00FFFF;

机构建仓: IF(最佳买入5,1,0),STICK,COLORFF00FF,LINETHICK1;

机构建仓日:STICKLINE(机构建仓,0,-0.3,3,0),COLORFF00FF,LINETHICK6;

HIGHN:=5;

RSII:=SMA(MAX(C-LC,0),12,1)/SMA(ABS(C-LC),12,1)*10,COLORCYAN,LINETHICK1;

LOWN:=HIGHN;

AAA:=REF(RSII,HIGHN)=HHV(RSII,2*HIGHN+1);

QY:=BACKSET(AAA,HIGHN+1);

CCC:=FILTER(QY,HIGHN) AND RSII=HHV(RSII,HIGHN+1);

DRAWICON(CCC,RSII*1.02,2);

DDD:=BARSLAST(CCC);

GDTS:=IF(CCC,CURRBARSCOUNT,0);

DINGBU:=IF(DDD,REF(RSII,DDD),RSII);{顶部}

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DINGBU1:=REF(DINGBU,DDD+1);

GDCS1:=CONST(DINGBUTS);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

GDCS2:=CONST(DINGBUTS1);

DINGBU2:=REF(DINGBU1,DDD+1);

MM:=IF(CURRBARSCOUNTGDCS2,0,1);

AA1:=REF(RSII,LOWN)=LLV(RSII,2*LOWN+1);

QY1:=BACKSET(AA1,LOWN+1);

CC1:=FILTER(QY1,LOWN) AND RSII=LLV(RSII,LOWN+1);

DRAWICON(CC1,RSI*0.098,1);

image.png

打板利器指标公式

N:=5;M:=20;

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

快:SMA(RSV,3,1),COLORGREEN;

慢:SMA(快,3,1);

极强:80,COLORRED;

中线:50,COLORLIBLUE;

极弱:20,COLORGREEN;

强势:IF(快慢,快,DRAWNULL),LINETHICK2,COLORRED;

快慢比:快/慢,NODRAW;

介入:IF(快M,30,0),COLORLIRED;

M1:MA(CLOSE,13),COLORYELLOW,LINETHICK2;

M2:MA(CLOSE,34),LINETHICK2,COLORWHITE;

M3:MA(CLOSE,55),COLORGREEN,LINETHICK2;

A:MA(C,5)COLORBLUE,LINETHICK3;

B:=AREF(A,1);

IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3;

M1:=3;M2:=7;M3:=13;M4:=18;

神奇线:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;

最高:=REF(HHV(H,120),1);

最低:=REF(LLV(L,120),1);

H1:=最高-(最高-最低)*0.191;

H中:=最高-(最高-最低)*0.5;

H5:=最高-(最高-最低)*0.809;

上:CONST(H1),POINTDOT,COLORMAGENTA,LINETHICK1;

中枢:CONST(H中),POINTDOT,COLORFF8900,LINETHICK1;

下:CONST(H5),POINTDOT,COLORGREEN,LINETHICK1;VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;

X1:=(C+L+H)/3;

BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;

EMA8:=EMA(C,8);

DRAWTEXT(FILTER(BB131 AND EMA(X1,13)REF(EMA(X1,8),1),10),

EMA8,'45'),COLORWHITE;

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

K:=MA(RSV,2.5);

D:=MA(K,2.5);

J:=3*K-2*D;

JJ:=J20;

STICKLINE(REF(J,1)20 AND EMA(C,20)REF(EMA(C,20),1) AND NOT(JJ),(C+O)/2,O,3,0 ),COLORAA00BB;

IF(SAR(2,2,20)=H,SAR(2,2,20),DRAWNULL),CIRCLEDOT,COLOR00E600;

IF(SAR(2,2,20)=L,SAR(2,2,20),DRAWNULL),CIRCLEDOT,COLOR3232FF;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。