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

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

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信庄见愁指标公式

  

VUR0:=(((((2*OPEN)+HIGH)+LOW)+(3*CLOSE))/7);  

VUR1:=(CAPITAL*VUR0);  

VUR2:=(SMA(AMOUNT,10,1)/1000);  

VUR3:=MA((CLOSE*3),5);  

VUR4:=((((VUR2*(CLOSE*3))/VUR3)*1)/10);  

VUR5:=((((VUR2*(OPEN*3))/VUR3)*1)/10);  

VUR6:=((((VUR2*(HIGH*3))/VUR3)*1)/10);  

VUR7:=((((VUR2*(LOW*3))/VUR3)*1)/10);  

VUR8:=(((((2*VUR5)+VUR6)+VUR7)+(3*VUR4))/7);  

VUR9:=EMA(DMA(EMA(VUR4,2),(SUM(VOL,1)*VUR8)),2);  

VURA:=EMA((VUR1-VUR9),1);  

VU1:=IF((VURA>REF(VURA,1)),((VURA-REF(VURA,1))*15/1000),0);  

VU2:=IF((VURA<REF(VURA,1)),((VURA-REF(VURA,1))*15/1000),0);  

VU3:=SUM(VU1,15);  

VU4:=EMA(VU3,10);  

VU5:=REF(VU4,1);  

VU6:=EMA(CLOSE,13);  

VU7:=(VU6<REF(VU6,1));  

VU8:=(VU7AND(VU4>VU5));  

VU9:=(SUM(VU2,21)*(0-1));  

VUA:=EMA(EMA(VU9,5),8);  

VUB:=REF(VUA,1);  

VUC:=EMA(CLOSE,3);  

VUD:=(VUC>REF(VUC,1));  

VUE:=(VUC<REF(VUC,1));  

VUF:=((VU4>VU5)ANDVUD);  

VUG:=((VU4>VU5)ANDVUE);  

VUH:=((VU6>REF(VU6,1))AND(VUA>VUB));  

VUN:=IF(VU8,VUR0,0);  

VUK:=IF(VUH,((VUR0+HIGH)/2),0);  

买线:VU5,,COLORDB70DB;  

进价:VUN,POINTDOT,COLORFE10D2;  

卖线:VUB,,colorligreen;  

出价:VUK,POINTDOT,colorgreen;  

拉抬:STICKLINE(VUF,VU5,(VU4*1.1),1,1),,COLOR1010F0;  

变盘:STICKLINE(VUG,VU5,(VU4*1.1),1,0),,COLORB4B410;  

出货:STICKLINE(VUH,VUB,(VUA*1.2),1,1),,colorgreen;  

吸筹:STICKLINE(VU8,VU5,(VU4*1.3),1,1),,COLORFE10D2;  

MA5:MA(CLOSE,5);  

MA20:MA(CLOSE,20),COLORMAGENTA;  

BT34:=IF(BACKSET(BARSTATUS=2,34)=1,1,DRAWNULL);  

CT90撑压线:EMA(COST(90),13),LINETHICK2,COLORCYAN;  

近期成本线:BT34*SUM(AMOUNT,13)/SUM(VOL,13)/100,LINETHICK2,COLORBLUE;  

N:=10;  

M:=10;  

N1:=10;  

M1:=10;  

散筹估算:EMA((WINNER((O+C*2+H+L)/5*1.1)-WINNER((O+C*2+H+L)/5*0.9))*80,10),STICK,COLORffeebb;  

EMA((WINNER((O+C*2+H+L)/5*1.1)-WINNER((O+C*2+H+L)/5*0.9))*80,10),COLORffeebb,LINETHICK2;  

主筹估算:EMA(WINNER((O+C*2+H+L)/5)*70,10),STICK,COLOR0000ff;  

EMA(WINNER((O+C*2+H+L)/5)*70,10),COLOR0000ff,linethick2;  

相对筹码:散筹估算-主筹估算,COLORff9900,linethick2;  

动态底部:EMA(IF(L<=LLV(l,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(l,1),0),30,1),0),3)*10,STICK,COLORYELLOW,LINETHICK2;  

VAR1:=IF(C>=O,H,0);  

VAR2:=IF(C<=O,REF(H,1),VAR1);  

VAR3:=IF(C>=O,V,0);  

VAR4:=IF(C<=O,REF(V,1),VAR3);  

VAR5:=COUNT(VAR2>REF(VAR2,1)ANDVAR4=2ANDC>O;

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;  

有庄的影子:STICKLINE(VAR8>1,0,VAR8,2,1),COLORFFAAFF;  

趋势线:(((CLOSE-MA(CLOSE,40))/MA(CLOSE,40))*100),COLORRED;  

AA:=(((((REF(趋势线,1)<REF(趋势线,2))AND(趋势线<-20))and(趋势线>-25))AND(趋势线>=REF(趋势线,1)))OR(REF(CROSS(-20,趋势线),1)ANDCROSS(趋势线,-20)));  

见底信号:IF(AA,200,-20),COLORYELLOW;  

DRAWTEXT(AA,190,'见底信号'),COLORYELLOW;  

BB:=(((((REF(趋势线,1)<REF(趋势线,2))AND(趋势线<-25))and(趋势线>-30))AND(趋势线>=REF(趋势线,1)))OR(REF(CROSS(-25,趋势线),1)ANDCROSS(趋势线,-25)));  

莫错失机会:IF(BB,230,-25),COLORWHITE;  

DRAWTEXT(BB,220,'莫错失机会'),COLORWHITE;  

CC:=(((((REF(趋势线,1)<REF(趋势线,2))AND(趋势线<-30))and(趋势线>=REF(趋势线,1)))OR(REF(CROSS(-30,趋势线),1)ANDCROSS(趋势线,-30)))OR(趋势线=-30));  

砸锅卖田买:IF(CC,260,-30),COLORMAGENTA;  

DRAWTEXT(CC,250,'砸锅卖田买'),COLORMAGENTA;  

底部快显:IF(CROSS(-20,趋势线),100,-20),COLORBROWN;  

DRAWTEXT(CROSS(-20,趋势线),90,'底部快显'),COLORBROWN;  

机会来临:IF(CROSS(-25,趋势线),130,-25),COLORLIGRAY;  

DRAWTEXT(CROSS(-25,趋势线),120,'机会来临'),COLORLIGRAY;  

砸锅卖田等:IF(CROSS(-30,趋势线),160,-30),COLORLIRED;  

DRAWTEXT(CROSS(-30,趋势线),150,'砸锅卖田等'),COLORLIRED;  

NOTEXT分界线:0,COLORWHITE,POINTDOT;  

V1:=AMOUNT/10000;  

成交金额:V1/1000;  

MA1:MA(AMOUNT/10000,5);  

MA2:MA(AMOUNT/10000,24);  

MA3:MA(AMOUNT/10000,60);  

N:100*v/capital;  

Var1:=ref(c,1);  

var4:=(var1-l)/(h-l);  

var5:=v1*var4;  

var2:=V*var4;  

var3:=abs(var2);  

var6:=abs(var5);  

var7:=abs(v1-var6);  

买盘:abs(v-var3)/100;  

卖盘:var3/100;  

买卖盘比%:abs(v-var3)/v*100;  

stickline(c>0,0,var6,5,0),colorffff00;  

STICKLINE(N<3,var6,v1,5,0),colorred;  

STICKLINE(N>=3andN<7,var6,V1,5.5,0),coloryellow;  

STICKLINE(N>=7,var6,V1,6,0),colorgreen;

image.png

[源码注释]通达信公式动态翻译结果

 ZT赋值:如果模糊匹配品种名称ORNAMELIKE('*ST'),返回收盘价/1日前的收盘价>0.495,否则返回如果(模糊匹配品种代码ORCODELIKE('300'))ANDDATE>=1200824,返回收盘价>1日前的收盘价>1.195,否则返回收盘价/1日前的收盘价>1.095

1日前的最高价=ZT并且收盘价<最高价并且开盘价>1.05

推荐阅读:通达信庄家出货指标公式

  

地轴:0,COLORWHITE;  

中轴:=25,COLORYELLOW;  

天轴:=50,COLORMAGENTA;  

CC:=MAX(C,O);  

SS:=(H-CC)/(H-L);  

XX:=(CC-L)/(H-L);  

ST:=ABS(C-O)/(H-L);  

日流入:=IF(C>REF(C,1),ST*VOL*100,0)/CAPITAL,COLORRED;  

日流出:=IF(C<REF(C,1),-ST*VOL*100,0)/CAPITAL,COLORCYAN;  

短线5:MA(SUM(日流入,5)+SUM(日流出,5),2),COLORYELLOW;  

流量10:MA(SUM(日流入,10)+SUM(日流出,10),2),COLORLIMAGENTA;  

短线20:MA(SUM(日流入,20)+SUM(日流出,20),2),COLORLIRED;  

散户30:MA(SUM(日流入,30)+SUM(日流出,30),2),COLORLIGREEN;  

中户60:MA(SUM(日流入,60)+SUM(日流出,60),2),COLORMAGENTA;  

主力181:MA(SUM(日流入,181)+SUM(日流出,181),2),COLORCYAN;  

庄家250:MA(SUM(日流入,250)+SUM(日流出,250),2),COLORRED;  

STICKLINE(日流入,日流入*5,0,1,0),COLORLIMAGENTA;  

STICKLINE(日流出,日流出*5,0,1,0),COLORLIGREEN;  

N:=8;  

趋势:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-  

3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORBLACK,LINETHICK1;  

取值:6,COLORBLACK,LINETHICK0;  

买入:IF(CROSS(趋势,取值),80,0);  

底盘:IF(趋势<=8,25,0),STICK,COLORWHITE,LINETHICK2;  

庄家:=EMA(EMA(CLOSE,10),10);  

现价:=(庄家-REF(庄家,1))/REF(庄家,1)*1000;  

STICKLINE(现价<REF(现价,1)AND现价<0,现价,0,2,0),COLORBLUE;  

吸筹:IF(现价<REF(现价,1)AND现价<0,现价,0)COLORBLUE,NODRAW;  

主力:=100*0.95;  

STICKLINE(主力>50ANDCOST(85)0,现价,0,2,0),COLORRED;  

拉升:IF(主力>50ANDCOST(85)0,现价,0),COLORRED,NODRAW;  

STICKLINE(现价0,现价,0,2,0),COLOR00FF00;  

上升:=SMA(((HHV(CLOSE,13)-CLOSE)/(HHV(CLOSE,13)-LLV(CLOSE,13))),5,1);  

冲顶:((10/上升)-10)/5,COLORSTICK,COLORYELLOW;  

STICKLINE((冲顶>24),0,冲顶,1,1)COLORYELLOW,LINETHICK1;  

出货:IF(现价0,现价,0),COLOR00FF00,NODRAW;  

上价:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;  

下价:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;  

中价:=MAX(EMA(上价,1)-EMA(下价,5),0)*200;  

吃庄价:=EMA(中价,5);  

净吃:吃庄价,STICK,COLORFF00FF;  

STICKLINE(吃庄价<REF(吃庄价,1),0,吃庄价,1,0),COLOR00FF00;  

价位:=(HIGH+LOW+CLOSE)/3;  

均价:=(HIGH+LOW+CLOSE*2)/4;  

讲价:=EMA(均价,8);  

讨价:=STD(均价,8);  

卖价:=(均价-讲价)/讨价*100;  

买价:=EMA(卖价,7);  

CCI:(价位-MA(价位,8))/(0.015*AVEDEV(价位,8)),LINETHICK1,COLORWHITE;  

上穿买:-100,LINETHICK2,COLORBROWN;  

下穿卖:100,LINETHICK1,COLORFF9900;  

顶线!:150,COLORRED,LINETHICK2;  

底线:-150,COLORMAGENTA,LINETHICK2;

image.png

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