通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信量学主图指标公式
预测量万:IF(ISNULL(REFX(&CLOSE,1))ANDSTRFIND(PERIODNAME,"日线"),VOL*240/FROMOPEN,0)/10000;//线形不输出
成交量万:VOL/10000,COLOR00ffff;//线形不输出
倍量:=VOL>=REF(V,1)*1.8ANDC>REF(C,1);
低量:=VOL<REF(LLV(VOL,13),1);
平量:=ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03ORABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03;
倍缩:=VOL<=REF(V,1)*0.5;
梯量:=COUNT(V>REF(V,1),3)=3ANDCOUNT(C>O,3)=3;
缩量涨:=COUNT(C>REF(C,1),2)=2ANDCOUNT(V<REF(V,1),2)=2;
STICKLINE(ISNULL(REFX(&CLOSE,1))ANDSTRFIND(PERIODNAME,"日线"),预测量万*10000,0,11,1),COLORffffff;
STICKLINE(C>=O,0,V,9,0),colorred;
STICKLINE(C<O,0,V,9,0),colorliblue;
STICKLINE(倍量,0,V,5,0),coloryellow;
STICKLINE(低量,0,V,5,0),colorgreen;
STICKLINE(倍缩,0,V,5,0),colorcyan;
STICKLINE(梯量,0,V,5,0),color0000aa;
STICKLINE(缩量涨,0,V,5,0),colormagenta;
流通盘:FINANCE(7)/100000000,colorwhite;
流通市值:FINANCE(40)/100000000,colorwhite;
长阴短柱:=C/REF(C,1)<=0.96ANDV<HHV(V,30)/1.9;
DRAWTEXT(长阴短柱,V+1.6*H,'▲买'),colorgreen;
V5:EMA(V,5),colorwhite;
V60:EMA(V,60),coloryellow;
V111:=LLV(H,120);
飞鱼:=100*(C-V111)/V111,COLORYELLOW,LINETHICK1;
V211:=HHV(H,120);
海洋:=100*(V211-C)/C,COLORGREEN,LINETHICK1;
海1:=HHV(海洋,22),COLORGREEN,LINETHICK1;
STICKLINE(飞鱼>海1,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR545454;
DRAWKLINE(H,O,L,C);{取消遮挡}
上:(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),COLORMAGENTA,NODRAW;{上31}
中:(O+C)/2,COLORRED,NODRAW;{中21}
下:(MAX(O,C)-MIN(O,C))/3+MIN(O,C),COLORYELLOW,NODRAW;{下31}
F10:=100*(C-O)/O;
F20:=100*(C-REF(C,1))/REF(C,1);
振幅:=(H-L)/REF(C,1)*100;
RQ:=IF(DATE>=1200824,1,0);
KCB:=IF(INBLOCK('科创板'),1,0);
CYB:=IF(INBLOCK('创业板')ANDRQ,1,0);
ZT1:=F20>=9.5ANDC=HANDNOT(KCBORCYB);
ZT2:=F20>=19.5ANDC=HAND(KCBORCYB);{20%涨停}
ZT3:=C=OANDC=LANDC=HAND(ZT1ORZT2);{一字板}
ZT4:=ZT1ORZT2ORZT3;
STICKLINE(ZT4,O,C,3,0),COLORFF00FF;
STICKLINE(ZT4,H,L,0,0),COLORFF00FF;
强弱分界80:EMA(COST(85),10),COLORRED;
强弱分界99:EMA(COST(99),10),COLORGREEN;
强弱分界80向上:=强弱分界80>REF(强弱分界80,1);
强弱分界99向上:=强弱分界99>REF(强弱分界99,1);
LC:100*(L-REF(C,1))/REF(C,1),COLORGREEN,NODRAW;
HC:100*(H-REF(C,1))/REF(C,1),COLORWHITE,NODRAW;
STICKLINE(LC<=-5,中,L,0,0),COLORFF8000;{出蓝脚}
STICKLINE(LC<=-8,中,L,0,0),COLORYELLOW;{出黄脚}
{STICKLINE(CTDX,下,L,0,0),COLORBLUE,LINETHICK2;}{出蓝脚}
STICKLINE((H/REF(C,1)>=1.03{ORH/O>=1.15}),中,H,0,0),COLOR838383;{出绿头(HC>3)}
STICKLINE((H/REF(C,1)>=1.05{ORH/O>=1.15}),中,H,0,0),COLORFF8000;{出蓝头(HC>5)}
STICKLINE((H/REF(C,1)>=1.08{ORH/O>=1.15}),中,H,0,0),COLORYELLOW,LINETHICK2;{出黄头(HC>8)};
二、通达信量比副图指标公式
数据天数:BARSSINCE(CLOSE>0)+1,NODRAW;
即时虚拟量:IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL/FROMOPEN*240,DRAWNULL),NODRAW;
虚拟量:=IF(CURRBARSCOUNT>1,VOL,即时虚拟量);
即时量比:虚拟量/REF(MA(虚拟量,5),1),COLORWHITE,LINETHICK2;
STICKLINE(C>=O,即时量比*0.99,0,0,0),COLORRED;
STICKLINE(C<O,即时量比*0.99,0,0,0),COLORGREEN;
{DRAWTEXT(即时量比>1.5AND即时量比<1.8,即时量比*1.1,'放量'),COLORYELLOW;}
DRAWNUMBER(即时量比>=1.5AND即时量比<1.8,即时量比*1.11,即时量比);
{DRAWTEXT(即时量比>=1.8AND即时量比<3,即时量比*1.11,'倍量'),COLORYELLOW;}
DRAWNUMBER(即时量比>=1.8AND即时量比<3,即时量比*1.15,即时量比);
{DRAWTEXT(即时量比>=3AND即时量比<5,即时量比*1.12,'大量'),COLORYELLOW;}
DRAWNUMBER(即时量比>=3AND即时量比<5,即时量比*1.2,即时量比),COLORYELLOW;
DRAWTEXT(即时量比>=5,即时量比*1.115,'巨量'),COLORYELLOW;
IF(即时量比>10,即时量比,DRAWNULL),COLORBLUE,LINETHICK2;
IF(即时量比<10and即时量比>2.5,即时量比,DRAWNULL),COLORRED,LINETHICK2;
IF(即时量比<1,即时量比,DRAWNULL),COLORGREEN,LINETHICK2;
IF(即时量比<0.5,即时量比,DRAWNULL),COLORBLUE,LINETHICK2;
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),STICK,COLORRED;
STICKLINE(最佳买入选股,0,5,7.5,0),COLOR102099;
STICKLINE(最佳买入选股,0,5,6,0),COLOR1020AA;
STICKLINE(最佳买入选股,0,5,5.5,0),COLOR1020BB;
STICKLINE(最佳买入选股,0,5,4,0),COLOR1020CC;
STICKLINE(最佳买入选股,0,1,3.5,0),COLOR1020DD;
STICKLINE(最佳买入选股,0,1,2,0),COLOR1020EE;
STICKLINE(最佳买入选股,0,1,1,0),COLOR1020FF;
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),STICK,COLORFFFF00;
STICKLINE(最佳买入时机,0,1,3,0),COLOR999900;
{STICKLINE(最佳买入时机,0,5,3.5,0),COLORBBBB00;}
STICKLINE(最佳买入时机,0,1,2,0),COLORDDDD00;
STICKLINE(最佳买入时机,0,1,1,0),COLORFFFF00;
机构建仓:IF(最佳买入<5,-0.1,0),STICK,COLOR00FF00,LINETHICK1;
机构建仓日:STICKLINE(机构建仓,0,-0.1,3,0),COLOR00FF00,LINETHICK6;
预警选股公式:
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);
最佳买入选股:CROSS(最佳买入,0);
[源码注释]通达信公式动态翻译结果
输出获利盘:以收盘价计算的获利盘比例*100 ,画红色
输出增幅:获利盘-1日前的获利盘,NODRAW
近邻筹码赋值:(以收盘价*1.075计算的获利盘比例-以收盘价*0.925计算的获利盘比例)*100
输出近邻浮筹:近邻筹码/以0日内最高价的最高值计算的获利盘比例,画绿色
输出获利纵横:获利盘-近邻浮筹,画白色
输出极强:90,画蓝色,DOTLINE
输出强势:65,画黄色,DOTLINE
输出强弱分界:50,画淡洋红色,DOTLINE
输出零位线:0,画蓝色
推荐阅读:通达信量学四维看盘主图指标
VVOL:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
倍量:VOL>=REF(V,1)*1.90ANDC>REF(C,1),NODRAW,COLORYELLOW;
低量:VOL<REF(LLV(VOL,13),1),NODRAW,COLORGREEN;
地量:VOL<REF(LLV(VOL,100),1),NODRAW,COLORMAGENTA;
平量:ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03ORABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,NODRAW,COLORWHITE;
倍缩:VOL<=REF(V,1)*0.5,NODRAW,COLORRED;
梯量:COUNT(V>REF(V,1),3)=3ANDCOUNT(C>O,3)=3,NODRAW,COLOR824173;
缩量涨:COUNT(C>REF(C,1),2)=2ANDCOUNT(V<REF(V,1),2)=2,NODRAW,COLORBLUE;
内外比:DYNAINFO(51),COLORYELLOW,NODRAW;
单日量比:V/REF(V,1),COLORWHITE,NODRAW;
五日量比:V/(REF(MA(V,5),1)/240*FROMOPEN),COLORYELLOW,NODRAW;
换手:VOL*10000/FINANCE(7);
十日换手:SUM(换手,10);
二十日换手:SUM(换手,20);
STICKLINE(倍量,0,V,1,0),COLORYELLOW;
STICKLINE(低量,0,V,1,0),COLORGREEN;
STICKLINE(地量,0,V,1,0),COLORMAGENTA;
STICKLINE(平量,0,V,1,0),COLORWHITE;
STICKLINE(倍缩,0,V,1,0),COLORRED;
STICKLINE(梯量,0,V,1,0),COLOR824173;
STICKLINE(缩量涨,0,V,1,0),COLORBLUE;
黄金柱:DRAWICON(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND
REF(C,3)>REF(O,3)ANDREF(V,3)>2*REF(V,4),0,1);
流通〖亿〗:CAPITAL/1000000,LINETHICK0;
HH:=HHV(H,60);
LL:=LLV(L,60);
天线:=REFDATE(HH,DATE);
地线:=REFDATE(LL,DATE);
中线:=REFDATE((天线-地线)*0.5+地线,DATE);
高:=天线;
低:=地线;
H2:=高-(高-低)*0.333;
H3:=高-(高-低)*0.5;
H4:=高-(高-低)*0.666;
突破上三一:CROSS(C,H2)ANDDYNAINFO(4)>0ANDBARSLASTCOUNT(V>0)>60;
突破二一位:CROSS(C,H3)ANDDYNAINFO(4)>0ANDBARSLASTCOUNT(V>0)>60;
突破下三一:CROSS(C,H4)ANDDYNAINFO(4)>0ANDBARSLASTCOUNT(V>0)>60;
涨停突破上31:C=ZTPRICE(REF(CLOSE,1),0.1)AND突破上三一;
涨停突破21:C=ZTPRICE(REF(CLOSE,1),0.1)AND突破二一位;
涨停突破下31:C=ZTPRICE(REF(CLOSE,1),0.1)AND突破下三一;
获利盘:WINNER(C)*100,COLORRED;
增幅:获利盘-REF(获利盘,1),NODRAW;
近邻筹码:=(WINNER(C*1.075)-WINNER(C*0.925))*100;
近邻浮筹:近邻筹码/WINNER(HHV(H,0)),COLORGREEN;
获利纵横:获利盘-近邻浮筹,COLORWHITE;
极强:90,COLORBLUE,DOTLINE;
强势:65,COLORYELLOW,DOTLINE;
强弱分界:50,COLORLIMAGENTA,DOTLINE;
零位线:0,COLORBLUE;
公式教程解答:
股票公式编写要求:
量比大于6%的公式。
股票公式编写结果:
量比:VOL/MA(REF(VOL,1),5)>1.06;
评论(0)