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

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

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

image.png

主力持仓线指标公式

       VAR2:=REF(LOW,1);  

VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;  

VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);  

VAR5:=LLV(LOW,38);  

VAR6:=HHV(VAR4,38);  

VAR7:=IF(LLV(LOW,90),1,0);  

VAR8:=EMA(IF(LOW=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;  

         maV:=(C*2+H+L)/4;  

SK:=EMA(MAV,13)-EMA(MAV,34);  

SD:=EMA(SK,5);  

中轴:0;  

空方主力:(-2*(SK-SD))*3.8,colorgreen;  

多方主力:(2*(SK-SD))*3.8,colorred;  

ST01:STICKLINE(1VAR8,VAR8,0,20,1),COLORF000FF;

       N:=3;

M:=6;

VARS:=100;

VARZQ:=30;

RSV:=(CLOSE-LLV(LOW,VARZQ))/(HHV(HIGH,VARZQ)-LLV(LOW,VARZQ))*VARS;

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

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

J:=3*K-2*D;

HS:=VOL/CAPITAL;

SH:=(HHV(HIGH,VARZQ)-CLOSE)/(HHV(HIGH,VARZQ)-LLV(LOW,VARZQ))*VARS-10;

JG:=(CLOSE-LLV(LOW,VARZQ))/(HHV(HIGH,VARZQ)-LLV(LOW,VARZQ))*VARS;

GF:=SMA(JG,13,8);

DDJG:=JG-REF(JG,1);

DTJG:=HS*DDJG*100/4;

VARZLSCJG:=(90+SUM(DTJG,0));

主力筹码:SUM(DTJG,0)+90,LINETHICK1,colorred;

STICKLINE(DTJG0,VARZLSCJG,VARZLSCJG+DTJG,1,0),colorred;

STICKLINE(DTJG0,VARZLSCJG+DTJG,VARZLSCJG,1,0),colorgreen;

DDSH:=SH-REF(SH,1);

DTSH:=HS*DDSH*100/4;

VARZLSCSH:= (60+SUM(DTSH,0));

散户筹码:SUM(DTSH,0)+60,LINETHICK1,colorwhite;

STICKLINE(DTSH0,VARZLSCSH,VARZLSCSH+DTSH,1,0),colorred;

STICKLINE(DTSH0,VARZLSCSH+DTSH,VARZLSCSH,1,0),colorgreen;

DDGF:=GF-REF(GF,1);

DTGF:=HS*DDGF*100/4;

VARZLSCGF:=(30+SUM(DTGF,0));

跟风筹码:SUM(DTGF,0)+30,LINETHICK1,colorcyan;

STICKLINE(DTGF0,VARZLSCGF,VARZLSCGF+DTGF,1,0),colorred;

STICKLINE(DTGF0,VARZLSCGF+DTGF,VARZLSCGF,1,0),colorgreen;

image.png

                主力持仓量指标公式

        N:=13;N1:=75;M:=14;M1:=5;  

Var1:=1;  

Var2:=3*SMA((CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100,20,1),15,1);  

Var3:=3*SMA((OPEN-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100,20,1),15,1);  

Var4:=0-Var3;  

Var5:=0-Var2;  

STICKLINE(Var5REF(Var4,1),(-1)*Var5,(-1)*Var4,6,1),,colorred;  

Var6:=MA(Var4,3);  

STICKLINE((-1)*Var5Var6,(-1)*Var5,(-1)*Var4,6,1),,colorred;  

STICKLINE(Var5=REF(Var4,1),(-1)*Var5,(-1)*Var4,6,1),,colorgreen;  

Var7:=REF(LOW,1)*0.9;  

Var8:=LOW*0.9;  

Var9:=(Var8*VOL+Var7*(CAPITAL-VOL))/CAPITAL;  

VarA:=EMA(Var9,30);  

VarB:=CLOSE-REF(CLOSE,1);  

VarC:=MAX(VarB,0);  

VarD:=ABS(VarB);  

VarE:=SMA(VarC,7,1)/SMA(VarD,7,1)*100;  

VarF:=SMA(VarC,13,1)/SMA(VarD,13,1)*100;  

Var10:=BARSCOUNT(CLOSE);  

Var11:=SMA(MAX(VarB,0),6,1)/SMA(ABS(VarB),6,1)*100;  

Var12:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;  

Var13:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;  

Var14:=SMA((SMA(Var13,4,1)-50)*2,3,1);  

Var15:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;  

Var16:=SMA(Var15,4,1)*Var1;  

Var17:=SMA(Var16,3,1);  

Var18:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;  

Var19:=Var11=25ANDVar12-95ANDVar1820ANDVar14-30ANDVar1730ANDVarA-CLOSE=-0.25ANDVarE22ANDVarF28ANDVar1050;  

Var1A:=(HIGH+LOW+CLOSE)/3;  

Var1B:=(Var1A-MA(Var1A,14))/(0.015*AVEDEV(Var1A,14));  

Var1C:=(Var1A-MA(Var1A,70))/(0.015*AVEDEV(Var1A,70));  

Var1D:=IF(Var1B=150ANDVar1B200ANDVar1C=150ANDVar1C200,10,0);  

Var1E:=IF(Var1B=-150ANDVar1B-200ANDVar1C=-150ANDVar1C-200,-10,Var1D);  

Var1F:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;  

Var20:=REVERSE(Var1F);  

Var21:=SMA(Var1F,3,1);  

Var22:=SMA(Var21,3,1)*Var1;  

Var23:=SMA(Var22,3,1)*Var1;  

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

Var25:=SMA(Var24,M1,1);  

散户:SMA(Var25,M1,1)*Var1,,colormagenta;  

Var26:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*100;  

Var27:=SMA(Var26,M1,1);  

Var28:=SMA(Var27,M1,1);  

主力:SMA(散户,M1,1)*Var1,,coloryellow;  

Var29:=COST(10);  

Var2A:=(CLOSE-Var29)/Var29*100;  

Var2B:=COUNT(Var2A-2.05,3)*Var1;  

主力吸货:IF(Var2B=3,10,0),,colorcyan;  

星星之火:IF(CROSS(5,主力吸货),20,0),,colorred;  

Var2C:=IF(CROSS(Var19,0.5),60,0)*Var1;  

大富翁:IF(CROSS(SMA(Var28,M1,1),85),75,0)*Var1,,colorwhite;  

Var2D:=CROSS(SMA(MAX(CLOSE-(CLOSE+REF(CLOSE,1))/2,0),5,1)/SMA(ABS(CLOSE-(CLOSE+REF(CLOSE,1))/2),5,1)*100,(CLOSE+REF(CLOSE,1))/2)AND(CLOSE-REF(CLOSE,36))/REF(CLOSE,36)*100-10ANDHHV(HIGH,40)*0.8LLV(LOW,5)ANDSMA((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1)80;  

Var2E:=(CLOSE-OPEN)/OPEN*100;  

Var2F:=REF(CLOSE,1)*Var1;  

Var30:=SMA(MAX(CLOSE-Var2F,0),6,1)/SMA(ABS(CLOSE-Var2F),6,1)*100;  

Var31:=COUNT(Var3020,20)=1*Var1;  

Var32:=IF(Var2E9ANDVar31,60,0)*Var1;  

有钱人:Var2CORVar32ORVar2D*60,,colorgreen;  

Var33:=IF(RSI.RSI178ANDROC.ROCREF(ROC.ROC,1)ORBIAS.BIAS320,80,100);  

Var34:=IF(CROSS(Var23,Var22)ANDVar2375,80,100)*Var1;  

DRAWTEXT(CROSS(Var19,0.5)ANDCOUNT(Var19=1,10)=1,35,'★')*Var1,,colorred;  

天:IF(Var33100ORVar34100,80,100),,colorred;  

M1:=1;M2:=3;M3:=5;M4:=20;  

AMV0:=VOL*(OPEN+CLOSE)/2;  

AMV1:SUM(AMv0,M1)/SUM(VOL,M1);  

AMV2:SUM(AMv0,M2)/SUM(VOL,M2);  

AMV3:SUM(AMv0,M3)/SUM(VOL,M3);  

AMV4:SUM(AMv0,M4)/SUM(VOL,M4);  

N:=3;N1:=5;  

r1:=ZDMR[-1];  

r2:=BDMR[-1];  

r3:=-ZDMC[-1];  

r4:=-BDMC[-1];  

a:=(r1+r2);  

b:=(r3+r4);  

d:=a+b;  

e:=a-b;  

STICKLINE(CREF(C,1),0,e,8,1),colorred;  

STICKLINE(C=REF(C,1),0,e,8,1),colorfff000;  

STICKLINE(d0,-d,0,8,0),color00ff00;  

STICKLINE(d0,d,0,8,0),color00ffff;  

STICKLINE(C,a,0,4,0),coloraa00bb;  

STICKLINE(C,a,0,3,0),colorcc22bb;  

STICKLINE(C,a,0,2,0),colordd33bb;  

STICKLINE(C,a,0,1,0),coloree44bb;  

STICKLINE(C,a,r1,4,0),color2266aa;  

STICKLINE(C,a,r1,3,0),color3377cc;  

STICKLINE(C,a,r1,2,0),color4488dd;  

STICKLINE(C,a,r1,1,0),color9955ee;  

STICKLINE(C,e,a,4,0),coloraaaaaa;  

STICKLINE(C,e,a,3,0),colorbbbbbb;  

STICKLINE(C,e,a,2,0),colorcccccc;  

STICKLINE(C,e,a,1,0),colordddddd;  

STICKLINE(C,e,a-r4,4,0),Colorff6600;  

STICKLINE(C,e,a-r4,3,0),Colorff7722;  

STICKLINE(C,e,a-r4,2,0),Colorff8833;  

STICKLINE(C,e,a-r4,1,0),Colorff9955;  

mv5:MA(e,5);  

mv10:MA(e,10);  

mv35:MA(e,35);  

mv135:MA(e,135);  

a3:=SUM(a,n)/1000000;  

b3:=SUM(b,n)/1000000;  

VOL1=SUM(VOL,n)/1000000;  

y:=a3-b3;  

z:=y/VOL1*100;  

TOSTRING(n,0)+天机构买入+TOSTRING(a3,1)+万手,卖出+TOSTRING(b3,1)+万手.净买入+TOSTRING(y,1)+万手.占总成交+TOSTRING(z,1)+%.;  

TOSTRING(n1,0)+天机构买入+TOSTRING(a3,1)+万手,卖出+TOSTRING(b3,1)+万手.净买入+TOSTRING(y,1)+万手.占总成交+TOSTRING(z,1)+%.;  

image.png

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