通达信主力筹码主图指标源码:
{灰色K}
STICKLINE(O>=C,H,L,0,0),COLOR909090;
STICKLINE(O>=C,C,O,3.1,0),COLOR606060;
STICKLINE(O>=C,C,O,3.1,0),COLOR707070;
STICKLINE(O>=C,C,O,1.2,0),COLOR808080;
STICKLINE(O>=C,C,O,0.2,0),COLOR909090;
STICKLINE(O<=C,H,L,0,0),COLOR666B6F;
STICKLINE(C>O,C,O,3.1,1),COLOR666B6F;
V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);
MA1:=EXPMEMA(CLOSE,3);
MA2:=EXPMEMA(CLOSE,5);
MA3:=EXPMEMA(CLOSE,8);
MA4:=EXPMEMA(CLOSE,10);
MA5:=EXPMEMA(CLOSE,12);
MA6:=EXPMEMA(CLOSE,35);
MA7:=EXPMEMA(CLOSE,40);
MA8:=EXPMEMA(CLOSE,45);
MA9:=EXPMEMA(CLOSE,50);
MA10:=EXPMEMA(CLOSE,60);
跌:=EMA(C,120),LINETHICK1,POINTDOT,COLORGREEN;
{涨:IF (跌>REF(跌,1),跌,0),LINETHICK2,CIRCLEDOT,COLORGREEN;}
红:=MA(C,120),LINETHICK1,POINTDOT,COLORGREEN;
{绿:IF (红>REF(红,1),红,0),LINETHICK2,CIRCLEDOT,COLORFF0080;}
A24:=EMA(C,24);
IF(A24>=REF(A24,1),A24,DRAWNULL),COLORFF00FF,LINETHICK1;
A55:=EMA(C,55);
IF(A55>=REF(A55,1),A55,DRAWNULL),COLORCYAN,LINETHICK1;
A77:=EMA(C,77),DOTLINE;
IF(A77>=REF(A77,1),A77,DRAWNULL),COLORRED,LINETHICK1;
效果:=O<=MIN(MA1,MIN(MA2,MIN(MA3,MIN(MA4,MA5))))AND
C>=MAX(MA1,MAX(MA2,MAX(MA3,MAX(MA4,MA5))));
A01:=MIN(O,C);
B01:=ABS(O-C);
A02:=MAX(O,C);
共振:=O<=MIN(MA1,MIN(MA2,MIN(MA3,MIN(MA4,MIN(MA5,MIN(MA6,MIN(MA7,MIN(MA8,
MIN(MA9,MA10)))))))))AND C>=MAX(MA1,MAX(MA2,MAX(MA3,MAX(MA4,MAX(MA5,
MAX(MA6,MAX(MA7,MAX(MA8,MAX(MA9,MA10)))))))));
STICKLINE(共振,H,L,0,1),COLORYELLOW;
STICKLINE(共振,C,O,3.1,0),COLOR117777;
STICKLINE(共振,C,O,2.6,0),COLOR119999;
STICKLINE(共振,C,O,1.9,0),COLOR11BBBB;
STICKLINE(共振,C,O,1.1,0),COLOR11DDDD;
STICKLINE(共振,C,O,0.3,0),COLOR44FFFF;
STICKLINE(效果,A01,A01+B01/6,3.1,0),COLOR880088;
STICKLINE(效果,A01,A01+B01/6,2.5,0),COLOR990099;
STICKLINE(效果,A01,A01+B01/6,2.0,0),COLORBB00BB;
STICKLINE(效果,A01,A01+B01/6,1.5,0),COLORDD00DD;
STICKLINE(效果,A01,A01+B01/6,0.7,0),COLORFF00FF;
主力筹码估算:=EMA(WINNER(CLOSE)*70,3),NODRAW,LINETHICK0;
散户筹码估算:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;
散户套牢比率:=散户筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;
主力控盘比率:=主力筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.85,0.84,0,’■ 主力筹码估算:’),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.92,0.84,0,’ %’),COLORMAGENTA;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.90,0.84,0,主力筹码估算),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.85,0.93,0,’■ 主力控盘比率:’),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.92,0.93,0,’ %’),COLORMAGENTA;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.90,0.93,0,主力控盘比率),COLORMAGENTA;
{风险系数}
X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替}
X3:=FINANCE(23)/FINANCE(10)*3.3;
X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}
X5:=FINANCE(20)/FINANCE(15)*0.999;
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
获利筹码:=CONST(WINNER(C)*100);
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和:=(IF(SAT>1,1,SAT)*100);
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃:=(WRSI-WR10);
活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));
DRAWTEXT_FIX(1,0.992,0.84,1,STRCAT(STRCAT(‘量能饱和: ‘,CON2STR(量能饱和,2)),’%’)),COLORMAGENTA;
DRAWTEXT_FIX(1,0.992,0.88,1,STRCAT(STRCAT(‘活跃度比: ‘,CON2STR(活跃度比,2)),’%’)),COLORMAGENTA;
DRAWTEXT_FIX(1,0.992,0.92,1,STRCAT(STRCAT(‘获利筹码: ‘,CON2STR(获利筹码,2)),’%’)),COLORMAGENTA;
{云析赢指标公式网,指标公式,指标源码,指标编写教程、指标破解指标论坛。www.zbgs518.com}
{DRAWTEXT_FIX(1,0.82,0.00,1,’大盘趋势:’),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.85,0.00,1,’∧向上∧’),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.85,0.03,1,’∧∧∧∧’),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.85,0.00,1,’∨向下∨’),COLORGREEN;
DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.85,0.03,1,’∨∨∨∨’),COLORGREEN;}
{DRAWTEXT_FIX(CURRBARSCOUNT=1,0.60,0.93,0,’数据日期: ‘),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.80,0.93,0,’ 财报更新第:’),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.90,0.93,0,FINANCE(37)),,COLORMAGENTA;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.70,0.93,0,MACHINEDATE+19000000),COLORMAGENTA;};
通达信VOL成交量换手率幅图指标公式源码:
历史量比:VOL/MA(VOL,5);
换手:VOL*100/CAPITAL,STICK;
二日换手:SUM(换手,2);
三日换手:SUM(换手,3);
五日换手:SUM(换手,5);
十日换手:SUM(换手,10);
二十日换手:SUM(换手,20);
三十日换手:SUM(换手,30);
STICKLINE(换手<=1,0,VOL,3,0),COLORWHITE;
STICKLINE(换手>1 AND 换手<=3 ,0,VOL,3,0),COLOR00FF00;
{云析赢指标公式网,指标公式,指标源码,指标编写教程、指标破解指标论坛。www.zbgs518.com}
STICKLINE(换手>3 AND 换手<=5 ,0,VOL,3,0),COLORF0F000;
STICKLINE(换手>5 AND 换手<=8 ,0,VOL,3,0),COLOR8788F6;
STICKLINE(换手>8 AND 换手<=10 ,0,VOL,3,0),COLORYELLOW;
STICKLINE(换手>10 AND 换手<=15 ,0,VOL,3,0),COLORFF00FF;
STICKLINE(换手>15 ,0,VOL,3,0),COLORRED;
DRAWTEXT(换手<=1,VOL+1000,’1′),COLORYELLOW;
DRAWTEXT(换手>1 AND 换手<=3,VOL+1000,’1′),COLORYELLOW;
DRAWTEXT(换手>3 AND 换手<=5,VOL+1000,’3′),COLORYELLOW;
DRAWTEXT(换手>5 AND 换手<=8,VOL+1000,’5′),COLORYELLOW;
DRAWTEXT(换手>8 AND 换手<=10,VOL+1000,’8′),COLORYELLOW;
DRAWTEXT(换手>10 AND 换手<=15,VOL+1000,’10’),COLORYELLOW;
DRAWTEXT(换手>15,VOL-15000,’ 15′),COLORYELLOW;
主力1:=IF(换手>10,V*0.9,V*0.1);
主力2:=IF(BETWEEN(换手,8,10),V*0.8,V*0.2);
主力3:=IF(BETWEEN(换手,5,8),V*0.6,V*0.4);
主力动向:(主力1+主力2+主力3)/3,COLORRED,LINETHICK0;
散户1:=IF(BETWEEN(换手,5,3),V*0.6,V*0.4);
散户2:=IF(BETWEEN(换手,3,1),V*0.8,V*0.2);
散户3:=IF(换手<1,V*0.9,V*0.1);
散户动向:(散户1+散户2+散户3)/3,COLORYELLOW,LINETHICK0;
MV1:EMA(V,9),COLOR0057FF;
MV2:EMA(V,34),COLORF1910E;
IF(MV1>MV2,MV1,DRAWNULL),COLORYELLOW;
IF(MV1<MV2,MV2,DRAWNULL),COLORFF9900;
DRAWBAND(MV1,RGB(155,0,0),MV2,RGB(0,100,0));
DRAWBAND(主力动向,RGB(255,0,0),散户动向,RGB(0,150,0));
指标公式截图: