通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信多日倍量柱选股指标公式

  

volUME:VOL,VOLstICK;  

JZLS:=COUNT(CLOSE>REF(CLOSE,1),2)=2ANDCOUNT(VOL<REF(VOL,1),2)=2;  

STICKLINE(JZLS,0,V,1,0),colorblue;  

DRAWTEXT(JZLS,VOL+3000,'降'),colorblue;  

T:=DYNAINFO(8)>0;  

VO:=VOL=LLV(VOL,100)ANDT,colorlicyan;  

低量柱:VOL<REF(LLV(VOL,13),1),NODRAW,colorgreen;  

STICKLINE(低量柱,0,V,1,0),colorgreen;  

地量柱:TANDVO,colormagenta;  

STICKLINE(地量柱,0,V,1,0),colormagenta;  

DRAWTEXT(地量柱,VOL+3000,'地'),colormagenta;  

FLZ:=V>REF(V,1)*0.98ANDV<REF(V,1)*1.02,LINETHICK0;  

STICKLINE(FLZ,0,V,1,0),colorwhite;  

DRAWTEXT(FLZ,VOL+5000,'平'),colorwhite;  

平量柱:FLZ,colorwhite;  

BLZ:=VOL>REF(V,1)*1.9;  

BLZ1:=VOL<REF(LLV(VOL,13),1);  

BLZ2:=VOL<REF(LLV(VOL,55),1);  

STICKLINE(BLZ,0,V,1,0),coloryellow;  

倍量柱:BLZ,coloryellow;  

DRAWTEXT(倍量柱,VOL+20000,'倍'),coloryellow;  

HJZ:=(3*C+H+L+O)/6;  

HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;  

HJZ3:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>HJZ2ANDC>O;  

黄金柱:FILTER(HJZ3,5),STICK,colorred,LINETHICK4;  

STICKLINE(黄金柱,0,V,1,0),colorred;  

DRAWTEXT(黄金柱,VOL+15000,'黄'),colorred;  

梯量柱:COUNT(V>REF(V,1),3)=3ANDCOUNT(C>O,3)=3,NODRAW,COLOR824173;  

STICKLINE(梯量柱,0,V,1,0),COLOR824173;  

价涨量缩:JZLS,colorblue;  

流通〖亿〗:CAPITAL/1000000,LINETHICK0;  

内外比: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);  

{个股DDX}  

主力购买力度:ABS(LARGEINTRDVOL*100/VOL)-ABS(LARGEOUTTRDVOL*100/VOL),NODRAW;  

DRAWRECTREL(0,0,998,998,RGB(323,125,175));  

DRAWRECTREL(100,0,900,998,RGB(0,0,10));  

DRAWRECTREL(200,0,800,998,RGB(0,0,10));  

DRAWRECTREL(300,0,700,998,RGB(0,0,10));  

DRAWRECTREL(400,0,600,998,RGB(0,0,10));  

DRAWRECTREL(500,0,500,998,RGB(255,255,0));  

DRAWRECTREL(0,100,998,100,RGB(300,100,210));  

DRAWRECTREL(0,250,998,250,RGB(300,100,210));  

DRAWRECTREL(0,400,998,400,RGB(300,100,210));  

DRAWRECTREL(0,550,998,550,RGB(300,100,210));  

DRAWRECTREL(0,700,998,700,RGB(300,100,210));  

DRAWRECTREL(0,850,998,850,RGB(300,100,210));  

超B:=L2_AMO(0,2)/10000.0;  

大B:=L2_AMO(1,2)/10000.0;  

中B:=L2_AMO(2,2)/10000.0;  

小B:=L2_AMO(3,2)/10000.0;  

超S:=L2_AMO(0,3)/10000.0;  

大S:=L2_AMO(1,3)/10000.0;  

中S:=L2_AMO(2,3)/10000.0;  

小S:=L2_AMO(3,3)/10000.0;  

特大单:=(L2_AMO(0,2)/10000.0)+(-L2_AMO(0,3)/10000.0);  

大单:=(L2_AMO(1,2)/10000.0)+(-L2_AMO(1,3)/10000.0);  

中单:=(L2_AMO(2,2)/10000.0)+(-L2_AMO(2,3)/10000.0);  

小单:=(L2_AMO(3,2)/10000.0)+(-L2_AMO(3,3)/10000.0);  

净流入1:=(超B+大B+中B+小B)-(超S+大S+中S+小S);  

机构净流:=ABS((超B+大B)-(超S+大S));  

机构:=ABS(特大单+大单);  

机构1:=(超B+大B)-(超S+大S);  

散户:=ABS(中单+小单);  

净流入:=ABS(特大单+大单+中单+小单);  

总额:=ABS(超B+大B+中B+小B)+(超S+大S+中S+小S);  

特大比:=(特大单*100)/总额;  

大比:=(大单*100)/总额;  

中比:=(中单*100)/总额;  

小比:=(小单*100)/总额;  

机构比:=(机构*100)/总额;  

散户比:=(散户*100)/总额;  

净流比:=(净流入*100)/总额;  

净流比1:=(净流入1*100)/总额;  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,0.03,0,'资金博弈')COLOR00FF80;{项目};  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,0.16,0,'当日')COLOR00FFFF;{项目};  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,0.31,0,'三日')COLOR00FFFF;{项目};  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,0.46,0,'五日')COLOR00FFFF;{项目};  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,0.61,0,'十日')COLOR00FFFF;{项目};  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,0.76,0,'二十日')COLOR00FFFF;{项目};  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,0.91,0,'六十日')COLOR00FFFF;{项目};  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.11,0.03,0,'超大单(万元)占比')COLORFF8080;  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.21,0.03,0,'大单(万元)占比')COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.31,0.03,0,'中单(万元)占比')COLOR00FFFF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.41,0.03,0,'小单(万元)占比')COLOR4080FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.50,0.03,0,'机构净流(万元)占比')COLORFFFF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.61,0.03,0,'散户净流(万元)占比')COLORFFFFFF;  

DRAWTEXT_FIX(1,0.71,0.03,0,STRCAT('净流入额(万元)','占比')),COLORFF80FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单)>=0,0.13,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单,1),''),CON2STR(特大比,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单)<0,0.12,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单,1),''),CON2STR(特大比,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单)>=0,0.23,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(大单,1),''),CON2STR(大比,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单)<0,0.22,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(大单,1),''),CON2STR(大比,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单)>=0,0.33,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(中单,1),''),CON2STR(中比,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单)<0,0.32,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(中单,1),''),CON2STR(中比,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单)>=0,0.43,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(小单,1),''),CON2STR(小比,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单)<0,0.42,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(小单,1),''),CON2STR(小比,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构1)>=0,0.53,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(机构1,1),''),CON2STR(机构比,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构1)<0,0.52,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(机构1,1),''),CON2STR(机构比,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户)>=0,0.63,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(散户,1),''),CON2STR(散户比,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户)<0,0.62,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(散户,1),''),CON2STR(散户比,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入1)>=0,0.73,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入1,1),''),CON2STR(净流比1,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入1)<0,0.72,0.15,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入1,1),''),CON2STR(净流比1,0)),'%')),COLOR00FF00;  

总额3:=SUM((超B+大B+中B+小B)+(超S+大S+中S+小S),3);  

总额5:=SUM((超B+大B+中B+小B)+(超S+大S+中S+小S),5);  

总额10:=SUM((超B+大B+中B+小B)+(超S+大S+中S+小S),10);  

总额20:=SUM((超B+大B+中B+小B)+(超S+大S+中S+小S),20);  

总额60:=SUM((超B+大B+中B+小B)+(超S+大S+中S+小S),60);  

特大单3:=SUM(特大单,3);  

特大单5:=SUM(特大单,5);  

特大单10:=SUM(特大单,10);  

特大单20:=SUM(特大单,20);  

特大单60:=SUM(特大单,60);  

特大3占:=(特大单3*100)/总额3;  

特大5占:=(特大单5*100)/总额5;  

特大10占:=(特大单10*100)/总额10;  

特大20占:=(特大单20*100)/总额20;  

特大60占:=(特大单60*100)/总额60;  

大单3:=SUM(大单,3);  

大单5:=SUM(大单,5);  

大单10:=SUM(大单,10);  

大单20:=SUM(大单,20);  

大单60:=SUM(大单,60);  

大单3占:=(大单3*100)/总额3;  

大单5占:=(大单5*100)/总额5;  

大单10占:=(大单10*100)/总额10;  

大单20占:=(大单20*100)/总额20;  

大单60占:=(大单60*100)/总额60;  

中单3:=SUM(中单,3);  

中单5:=SUM(中单,5);  

中单10:=SUM(中单,10);  

中单20:=SUM(中单,20);  

中单60:=SUM(中单,60);  

中单3占:=(中单3*100)/总额3;  

中单5占:=(中单5*100)/总额5;  

中单10占:=(中单10*100)/总额10;  

中单20占:=(中单20*100)/总额20;  

中单60占:=(中单60*100)/总额60;  

小单3:=SUM(小单,3);  

小单5:=SUM(小单,5);  

小单10:=SUM(小单,10);  

小单20:=SUM(小单,20);  

小单60:=SUM(小单,60);  

小单3占:=(小单3*100)/总额3;  

小单5占:=(小单5*100)/总额5;  

小单10占:=(小单10*100)/总额10;  

小单20占:=(小单20*100)/总额20;  

小单60占:=(小单60*100)/总额60;  

机构3:=特大单3+大单3;  

机构5:=特大单5+大单5;  

机构10:=特大单10+大单10;  

机构20:=特大单20+大单20;  

机构60:=特大单60+大单60;  

机构3占:=(机构3*100)/总额3;  

机构5占:=(机构5*100)/总额5;  

机构10占:=(机构10*100)/总额10;  

机构20占:=(机构20*100)/总额20;  

机构60占:=(机构60*100)/总额60;  

散户3:=中单3+小单3;  

散户5:=中单5+小单5;  

散户10:=中单10+小单10;  

散户20:=中单20+小单20;  

散户60:=中单60+小单60;  

散户3占:=(散户3*100)/总额3;  

散户5占:=(散户5*100)/总额5;  

散户10占:=(散户10*100)/总额10;  

散户20占:=(散户20*100)/总额20;  

散户60占:=(散户60*100)/总额60;  

净流入3:=特大单3+大单3+中单3+小单3;  

净流入5:=特大单5+大单5+中单5+小单5;  

净流入10:=特大单10+大单10+中单10+小单10;  

净流入20:=特大单20+大单20+中单20+小单20;  

净流入60:=特大单60+大单60+中单60+小单60;  

净流入3占:=(净流入3*100)/总额3;  

净流入5占:=(净流入5*100)/总额5;  

净流入10占:=(净流入10*100)/总额10;  

净流入20占:=(净流入20*100)/总额20;  

净流入60占:=(净流入60*100)/总额60;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单3)>=0,0.13,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单3,1),''),CON2STR(特大3占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单3)<0,0.12,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单3,1),''),CON2STR(特大3占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单3)>=0,0.23,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(大单3,1),''),CON2STR(大单3占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单3)<0,0.22,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(大单3,1),''),CON2STR(大单3占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单3)>=0,0.33,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(中单3,1),''),CON2STR(中单3占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单3)<0,0.32,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(中单3,1),''),CON2STR(中单3占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单3)>=0,0.43,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(小单3,1),''),CON2STR(小单3占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单3)<0,0.42,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(小单3,1),''),CON2STR(小单3占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构3)>=0,0.53,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(机构3,1),''),CON2STR(机构3占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构3)<0,0.52,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(机构3,1),''),CON2STR(机构3占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户3)>=0,0.63,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(散户3,1),''),CON2STR(散户3占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户3)<0,0.62,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(散户3,1),''),CON2STR(散户3占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入3)>=0,0.73,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入3,1),''),CON2STR(净流入3占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入3)<0,0.72,0.31,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入3,1),''),CON2STR(净流入3占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单5)>=0,0.13,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单5,1),''),CON2STR(特大5占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单5)<0,0.12,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单5,1),''),CON2STR(特大5占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单5)>=0,0.23,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(大单5,1),''),CON2STR(大单5占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单5)<0,0.22,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(大单5,1),''),CON2STR(大单5占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单5)>=0,0.33,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(中单5,1),''),CON2STR(中单5占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单5)<0,0.32,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(中单5,1),''),CON2STR(中单5占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单5)>=0,0.43,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(小单5,1),''),CON2STR(小单5占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单5)<0,0.42,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(小单5,1),''),CON2STR(小单5占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构5)>=0,0.53,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(机构5,1),''),CON2STR(机构5占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构5)<0,0.52,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(机构5,1),''),CON2STR(机构5占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户5)>=0,0.63,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(散户5,1),''),CON2STR(散户5占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户5)<0,0.62,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(散户5,1),''),CON2STR(散户5占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入5)>=0,0.73,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入5,1),''),CON2STR(净流入5占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入5)<0,0.72,0.46,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入5,1),''),CON2STR(净流入5占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单10)>=0,0.13,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单10,1),''),CON2STR(特大10占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单10)<0,0.12,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单10,1),''),CON2STR(特大10占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单10)>=0,0.23,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(大单10,1),''),CON2STR(大单10占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单10)<0,0.22,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(大单10,1),''),CON2STR(大单10占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单10)>=0,0.33,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(中单10,1),''),CON2STR(中单10占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单10)<0,0.32,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(中单10,1),''),CON2STR(中单10占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单10)>=0,0.43,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(小单10,1),''),CON2STR(小单10占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单10)<0,0.42,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(小单10,1),''),CON2STR(小单10占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构10)>=0,0.53,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(机构10,1),''),CON2STR(机构10占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构10)<0,0.52,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(机构10,1),''),CON2STR(机构10占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户10)>=0,0.63,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(散户10,1),''),CON2STR(散户10占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户10)<0,0.62,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(散户10,1),''),CON2STR(散户10占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入10)>=0,0.73,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入10,1),''),CON2STR(净流入10占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入10)<0,0.72,0.61,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入10,1),''),CON2STR(净流入10占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单20)>=0,0.13,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单20,1),''),CON2STR(特大20占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单20)<0,0.12,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(特大单20,1),''),CON2STR(特大20占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单20)>=0,0.23,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(大单20,1),''),CON2STR(大单20占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单20)<0,0.22,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(大单20,1),''),CON2STR(大单20占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单20)>=0,0.33,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(中单20,1),''),CON2STR(中单20占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单20)<0,0.32,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(中单20,1),''),CON2STR(中单20占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单20)>=0,0.43,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(小单20,1),''),CON2STR(小单20占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单20)<0,0.42,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(小单20,1),''),CON2STR(小单20占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构20)>=0,0.53,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(机构20,1),''),CON2STR(机构20占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(机构20)<0,0.52,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(机构20,1),''),CON2STR(机构20占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户20)>=0,0.63,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(散户20,1),''),CON2STR(散户20占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(散户20)<0,0.62,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(散户20,1),''),CON2STR(散户20占,0)),'%')),COLOR00FF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入20)>=0,0.73,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入20,1),''),CON2STR(净流入20占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入20)<0,0.72,0.76,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入20,1),''),CON2STR(净流入20占,0)),'%')),COLOR00FF00;  

CJZJWSW1:=STRCAT(CON2STR(特大单60,2),'');  

CJZJWSW2:=STRCAT(CON2STR((100*特大单60)/总额60,0),'%');  

CJZJWSW3:=STRCAT(CON2STR(大单60,2),'');  

CJZJWSW4:=STRCAT(CON2STR((100*大单60)/总额60,0),'%');  

CJZJWSW5:=STRCAT(CON2STR(中单60,2),'');  

CJZJWSW6:=STRCAT(CON2STR((100*中单60)/总额60,0),'%');  

CJZJWSW7:=STRCAT(CON2STR(小单60,2),'');  

CJZJWSW8:=STRCAT(CON2STR((100*小单60)/总额60,0),'%');  

CJZJWSW9:=STRCAT(CON2STR(机构60,2),'');  

CJZJWSW10:=STRCAT(CON2STR((100*机构60)/总额60,0),'%');  

CJZJWSW11:=STRCAT(CON2STR(散户60,2),'万元');  

CJZJWSW12:=STRCAT(CON2STR((100*散户60)/总额60,0),'%');  

六十日结果:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(CJZJWSW1,CJZJWSW2),CJZJWSW3),CJZJWSW4),CJZJWSW5),CJZJWSW6),CJZJWSW7),CJZJWSW8),CJZJWSW9),CJZJWSW10),CJZJWSW11),CJZJWSW12);  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND六十日结果>0,0.13,0.91,0,六十日结果),COLORFFFF00;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入60)>=0,0.73,0.91,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入60,1),''),CON2STR(净流入60占,0)),'%')),COLOR0000FF;  

DRAWTEXT_FIX(CURRBARSCOUNT=1AND(净流入60)<0,0.72,0.91,0,STRCAT(STRCAT(STRCAT(CON2STR(净流入60,1),''),CON2STR(净流入60占,0)),'%')),COLOR00FF00;  

均5:MA(CLOSE,5),COLORYELLOW;  

均10:MA(CLOSE,10),COLORF00FF0;  

均30:MA(CLOSE,30),COLOR00FF00;  

均60:MA(CLOSE,60),COLORRED,POINTDOT,LINETHICK2;  

均250:MA(CLOSE,250),COLORBLUE,LINETHICK2;  

上轨:=均30+2*STD(CLOSE,30),COLORYELLOW,POINTDOT,LINETHICK2;  

下轨:=均30-2*STD(CLOSE,30),COLORYELLOW,POINTDOT,LINETHICK2;  

VV2:=REF(CLOSE,1);  

VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;  

DRAWICON(REF(VV3,1)>81ANDVV3<80,HIGH,2);  

DRAWTEXT(REF(VV3,1)>81ANDVV3<80,HIGH*1.03,'↓'),COLORYELLOW;  

VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;  

DRAWTEXT(IF(CLOSEMA(VOL,5)/240ANDCLOSE>=REF(CLOSE,1)*1.08ANDCLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),COLORRED;  

VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;  

VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);  

DRAWTEXT(IF(VOL>=1.3*MA(VOL,5)ANDCOUNT(VARA>=VARBANDVARA<-17,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入');  

VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;  

DRAWICON(CROSS(82,VARR1),HIGH,2);  

DRAWTEXT(CROSS(82,VARR1),HIGH,'↓'),COLORYELLOW;  

VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;  

VAR2:=REF(VAR1,1);  

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

HY3:=IF(COUNT(VAR3<20,5)>=1ANDCOUNT(VAR1=LLV(VAR1,10),10)>=1ANDCLOSE>=OPEN*1.038ANDVOL>MA(VOL,5)*1.2,1,0);  

DRAWTEXT(HY3,LOW,''),COLORRED;  

S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;  

A:=MA(S,5),COLORGREEN,,LINETHICK2;  

BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;  

F:=MA(S,121);  

RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;  

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

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

J:=3*K-2*D;  

LC:=REF(CLOSE,1);  

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

DRAWTEXT(CROSS(84,RSI),HIGH*1.01,'顶!'),COLORYELLOW;  

S1:=IF((J<11andbias>-11ANDCROSS(S,F)AND(S-F)>0.010),2,0),STICK,LINETHICK3,COLORGREEN;  

DRAWTEXT(S1=2,LOW,'关注'),COLORGREEN;  

TJ1:=LLV(CLOSE,3)>REF(L,3)ANDHHV(V,1)<=ref(v,3)andref(c,3)>REF(O,3)ANDREF(V,3)>0.8*REF(V,4)ANDREF(V,3)>1.1*REF(V,5);  

LJL:=FILTER(TJ1,1);  

TJ2:=IF(BARSLAST(LJL)=1ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3ANDCLOSE>REF(HIGH,3),1,0)));  

TP:=TJ2=1;  

STICKLINE(CLOSE,REF(LLV(L,3),BARSLAST(LJL)),REF(LLV(L,3),BARSLAST(LJL)),6,0),COLORYELLOW;  

TJ3:=IF(BARSLAST(LJL)=1ANDCLOSE>REF(LOW,1),1,IF(BARSLAST(LJL)=2ANDCLOSE>REF(LOW,2),1,IF(BARSLAST(LJL)=3ANDCLOSE>REF(LOW,3),1,0)));  

STFZ:=TJ3=1;  

CL:=STFZANDTP;  

TJCL:=FILTER(CL,3);  

VAR1:=(CLOSE*2+HIGH+LOW)/4;VAR2:=EMA(VAR1,13)-EMA(VAR1,34);VAR3:=EMA(VAR2,5);散户资金线:(-2)*(VAR2-VAR3)*3.8;主力资金线:2*(VAR2-VAR3)*3.8;

image.png

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

AA赋值:100日内VANDC<开盘价的最高值

输出XG:最近10日存在成交量(手)=AA

每日通达信公式解答:


  

编写要求:  

月线涨幅40%的选股指标.  

公式在线网解答:  

tj:IF(C/REF(C,BARSLAST(IF(MONTH=REF(MONTH,1)=0,1,0))+1)>1.4,C/REF(C,BARSLAST(IF(MONTH=REF(MONTH,1)=0,1,0))+1),0);  

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