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

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

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

image.png

主力操盘线主图指标公式

  

         m:=60;n:=30;  

散户线:100*(HHV(HIGH,m)-CLOSE)/(HHV(HIGH,m)-LLV(LOW,m));  

rsv:=(CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100;  

k:=SMA(rsv,5,1);  

d:=SMA(k,3,1);  

j:=3*k-2*d;  

主力线:EMA(j,6),coloryellow;  

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(var8100,100,var8);  

吸筹:STICKLINE(var9-120,0,var9,6,1),colormagenta;  

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(jREF(j,1)AND走势=REF(走势,1)AND走势25,5),走势,1);  

卖观注:STICKLINE(走势-aa685,98,90,15,1),colorffff00;  

DRAWICON(FILTER(jREF(j,1)AND走势=REF(走势,1)ANDj85,5),j,2);  

REFLINE:0;  

DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);  

DEA:=EMA(DIFF,5);  

MACD:=2*(DIFF-DEA);  

X1:=EMA(DIFF,5)*5;  

X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;  

X3:IF(X20,X2,0),POINTDOT,colorred;  

X4:IF(X20,X2,0),POINTDOT,colorgreen;  

STICKLINE(X20,0,X2,2.8,0),colorred;  

STICKLINE(X20,0,X2,2.8,0),COLOR000088;  

STICKLINE(X20,0,X2,2.6,0),COLOR000099;  

STICKLINE(X20,0,X2,2.4,0),COLOR0000AA;  

STICKLINE(X20,0,X2,2.2,0),COLOR0000BB;  

STICKLINE(X20,0,X2,2,0),COLOR0000CC;  

STICKLINE(X20,0,X2,1.8,0),COLOR0000DD;  

STICKLINE(X20,0,X2,1.5,0),COLOR0000EE;  

STICKLINE(X20,0,X2,1.0,0),COLOR0000FF;  

STICKLINE(X20,0,X2,0.0,0),COLOR0000FF;  

STICKLINE(X20,0,X2,2.8,0),colorgreen;  

STICKLINE(X20,0,X2,2.8,0),COLOR007700;  

STICKLINE(X20,0,X2,2.6,0),COLOR008800;  

STICKLINE(X20,0,X2,2.6,0),COLOR009900;  

STICKLINE(X20,0,X2,2.4,0),COLOR00BB00;  

STICKLINE(X20,0,X2,2.0,0),COLOR00CC00;  

STICKLINE(X20,0,X2,1.8,0),COLOR00DD00;  

STICKLINE(X20,0,X2,1.5,0),COLOR00EE00;  

STICKLINE(X20,0,X2,1,0),COLOR00FF00;  

STICKLINE(X20,0,X2,0,0),,COLOR00FF00;  

资金动能A:X2,coloryellow,LINETHICK2;  

资金动能B:X1,COLORFFFF00,LINETHICK2;  

DRAWICON((CROSS(资金动能A,资金动能B)AND资金动能B-0.25),资金动能B,1);  

DRAWICON((CROSS(资金动能B,资金动能A)AND资金动能A0.25),资金动能A,2);  

image.png

主力庄家资金线主图指标

  

        AVPRICE:=(((2)*(OPEN)+(2)*(CLOSE)+(2)*(HIGH)+(2)*(LOW))/(8));  

INDEXAVP:=(((2)*(INDEXH)+(2)*(INDEXL)+(2)*(INDEXO)+(2)*(INDEXC))/(8));  

F:=(AVPRICE-REF(AVPRICE,1))/(REF(AVPRICE,1));  

F1:=(INDEXAVP-REF(INDEXAVP,1))/(REF(INDEXAVP,1));  

类比参数3:=(((SUM(F,10)+SUM(F1,10))/(10))*(1000));  

类比大盘参数:=IF((类比参数30),类比参数3,0);  

类比参数2:=IF((类比参数30),(-类比参数3),0);  

STICKLINE(类比参数2,150,150-类比参数2,11,0),Color008000;  

STICKLINE(类比大盘参数,150,150-类比大盘参数,11,0),ColorFF00FF;  

AA:=AVPRICE;  

BB:=((VOL)*((AA)*(2)-HIGH-LOW))/(HIGH-LOW);  

CC:=IF((HIGH=LOW)AND(AAREF(AA,1)),((-1))*(VOL),VOL);  

A:=IF((HIGH=LOW),CC,BB);  

B:=SUM(A,11);  

BBD:=(((B)/((CAPITAL)*(11)))*(10000));  

BB1:=IF((BBD150)AND(BBD(-150)),BBD,150);  

买方能量指标:=IF((BB10),BB1,0);  

STICKLINE((BB10),0,买方能量指标,5,0),coloryellow;  

STICKLINE((BB10),0,(-BB1),5,0),Color008000;  

A16:=(SUM((AVPRICE)*(VOL),16))/(SUM(VOL,16));  

A11:=(SUM((AVPRICE)*(VOL),11))/(SUM(VOL,11));  

A6:=(SUM((AVPRICE)*(VOL),6))/(SUM(VOL,6));  

A7:=(SUM((AVPRICE)*(VOL),7)-(AVPRICE)*(VOL))/(SUM(VOL,7)-VOL);  

A0:=((A11-A16)/(AVPRICE))*(1000);  

A00:=IF((A050),50,IF((A0(-50)),(-50),A0));  

A1:=((A6-A11)/(AVPRICE))*(1000);  

AA11:=IF((A150),50,IF((A1(-50)),(-50),A1));  

A2:=((((A6-A7)/(A7))*(5))/(4))*(1000);  

A22:=IF((A250),50,IF((A2(-50)),(-50),A2));  

刻度线3:=(A00+AA11+A22);  

趋势线:=IF((刻度线30),刻度线3,0);  

兰刻度线:=IF((刻度线30),刻度线3,0);  

红柱线:趋势线,ColorFFFF00;  

兰柱线:(-兰刻度线),colorred;  

STICKLINE(趋势线,0,趋势线,3,0),colorred;  

STICKLINE(兰刻度线,0,(-兰刻度线),3,0),ColorFF0000;  

强弱分界:50,Color000080;  

        IF(STRFIND(PERIODNAME,分钟,1)0)  

{  

统计:该指标只在日线、周线、月线、季线和年线周期下有效。;  

RETURN;  

}  

r:=1000000*(ZDMCCS[-1]+BDMCCS[-1]-(ZDMRCS[-1]+BDMRCS[-1]))/(SHGZG/(VOL/VOLAMOUNT));  

散户数量:r;  

STICKLINE(r0,0,r,8),color00ff00;  

STICKLINE(r0,0,r,8),colorff00ff;  

r0:=1000000*(IF(ISNULL(ZDMCCS[-1]),0,ZDMCCS)+IF(ISNULL(BDMCCS[-1]),0,BDMCCS)  

-(IF(ISNULL(ZDMRCS[-1]),0,ZDMRCS)+IF(ISNULL(BDMRCS[-1]),0,BDMRCS)))  

/(SHGZG/(VOL/VOLAMOUNT));  

ma5:MA(r0,5);  

MA10:MA(r0,10);  

MA20:MA(r0,20);  

       MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;  

主力:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+  

16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+  

13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+  

10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+  

7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+  

4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,colorred;  

image.png

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