量比彩柱指标 通达信公式(附图)

[复制链接]
查看169 | 回复0 | 2021-8-20 20:04:54 | 显示全部楼层 |阅读模式

{}
正常线:1.0,COLORWHITE,LINETHICK1;
关注线:1.5,COLORYELLOW,LINETHICK1;
放量线:2.5,COLORMAGENTA,LINETHICK1;
STICKLINE(C>0,1,1,28,0)COLORWHITE;
STICKLINE(C>0,1.5,1.5,28,0)COLORYELLOW;
STICKLINE(C>0,2.5,2.5,28,0)COLORMAGENTA;
{}
VOLLB:=VOL/REF(MA(VOL,5),1)COLORRED,NODRAW;
{}
A1:=VOLLB>=0.001 AND VOLLB<0.5;
A2:=VOLLB>=0.5 AND VOLLB<0.8;
A3:=VOLLB>=0.8 AND VOLLB<1.5;
A4:=VOLLB>=1.5 AND VOLLB<2.5;
A5:=VOLLB>=2.5 AND VOLLB<5.0;
A6:=VOLLB>=5.0 AND VOLLB<10.0;
A7:=VOLLB>=10.0 AND VOLLB<200.0;
{}
严重缩量:=A1,COLORLIGRAY,NODRAW;
STICKLINE(A1,0,VOLLB,2.0,0),COLOR6E6E6E;
STICKLINE(A1,0,VOLLB,1.7,0),COLOR828282;
STICKLINE(A1,0,VOLLB,1.4,0),COLOR969696;
STICKLINE(A1,0,VOLLB,1.1,0),COLORAAAAAA;
STICKLINE(A1,0,VOLLB,0.8,0),COLORBEBEBE;
STICKLINE(A1,0,VOLLB,0.5,0),COLORD2D2D2;
STICKLINE(A1,0,VOLLB,0.2,0),COLORE6E6E6;
STICKLINE(A1,0,VOLLB,0.05,0),COLORFAFAFA;
{STICKLINE(A1,0,VOLLB,2,0),COLORLIGRAY;}
{}
缩量:=A2,COLOR00C800,NODRAW;
STICKLINE(A2,0,VOLLB,2.0,0),COLOR009600;
STICKLINE(A2,0,VOLLB,1.7,0),COLOR00A500;
STICKLINE(A2,0,VOLLB,1.4,0),COLOR00B400;
STICKLINE(A2,0,VOLLB,1.1,0),COLOR00C300;
STICKLINE(A2,0,VOLLB,0.8,0),COLOR00D200;
STICKLINE(A2,0,VOLLB,0.5,0),COLOR00E100;
STICKLINE(A2,0,VOLLB,0.2,0),COLOR00F000;
STICKLINE(A2,0,VOLLB,0.05,0),COLOR00FF00;
{STICKLINE(A2,0,VOLLB,2,0),COLOR00C800;}
{}
正常量比:=A3,COLORLIBLUE,NODRAW;
STICKLINE(A3,0,VOLLB,2.0,0),COLOR996700;
STICKLINE(A3,0,VOLLB,1.7,0),COLORAA7800;
STICKLINE(A3,0,VOLLB,1.4,0),COLORBB9900;
STICKLINE(A3,0,VOLLB,1.1,0),COLORCCAA00;
STICKLINE(A3,0,VOLLB,0.8,0),COLORDDBB00;
STICKLINE(A3,0,VOLLB,0.5,0),COLOREECC00;
STICKLINE(A3,0,VOLLB,0.2,0),COLOREFDD00;
STICKLINE(A3,0,VOLLB,0.05,0),COLORFFEE00;
{STICKLINE(A3,0,VOLLB,2,0),COLORLIBLUE;}
{}
温和放量:=A4,COLOR00DCDC,NODRAW;
STICKLINE(A4,0,VOLLB,2.0.0,0),COLOR0096FF;
STICKLINE(A4,0,VOLLB,1.7,0),COLOR00A5FF;
STICKLINE(A4,0,VOLLB,1.4,0),COLOR00B4FF;
STICKLINE(A4,0,VOLLB,1.1,0),COLOR00C3FF;
STICKLINE(A4,0,VOLLB,0.8,0),COLOR00D2FF;
STICKLINE(A4,0,VOLLB,0.5,0),COLOR00E1FF;
STICKLINE(A4,0,VOLLB,0.2,0),COLOR00F0FF;
STICKLINE(A4,0,VOLLB,0.05,0),COLOR00FFFF;
{STICKLINE(A4,0,VOLLB,2,0),COLOR00DCDC;}
{}
明显放量:=A5,COLORMAGENTA,NODRAW;
STICKLINE(A5,0,VOLLB,2.0,0),COLOR960096;
STICKLINE(A5,0,VOLLB,1.7,0),COLORA500A5;
STICKLINE(A5,0,VOLLB,1.4,0),COLORB400B4;
STICKLINE(A5,0,VOLLB,1.1,0),COLORC300C3;
STICKLINE(A5,0,VOLLB,0.8,0),COLORD200D2;
STICKLINE(A5,0,VOLLB,0.5,0),COLORE100E1;
STICKLINE(A5,0,VOLLB,0.2,0),COLORF000F0;
STICKLINE(A5,0,VOLLB,0.05,0),COLORFF00FF;
{STICKLINE(A5,0,VOLLB,2,0),COLORMAGENTA;}
{}
剧烈放量:=A6,COLORRED,NODRAW;
STICKLINE(A6,0,VOLLB,2.0,0),COLOR000096;
STICKLINE(A6,0,VOLLB,1.7,0),COLOR0000A5;
STICKLINE(A6,0,VOLLB,1.4,0),COLOR0000B4;
STICKLINE(A6,0,VOLLB,1.1,0),COLOR0000C3;
STICKLINE(A6,0,VOLLB,0.8,0),COLOR0000D2;
STICKLINE(A6,0,VOLLB,0.5,0),COLOR0000E1;
STICKLINE(A6,0,VOLLB,0.2,0),COLOR0000F0;
STICKLINE(A6,0,VOLLB,0.05,0),COLOR0000FF;
{STICKLINE(A6,0,VOLLB,2,0),COLORRED;}
{}
反向操作:=A7,COLORBLUE,NODRAW;
STICKLINE(A7,0,VOLLB,2.0,0),COLOR730000;
STICKLINE(A7,0,VOLLB,1.7,0),COLOR870000;
STICKLINE(A7,0,VOLLB,1.4,0),COLOR9B0000;
STICKLINE(A7,0,VOLLB,1.1,0),COLORAF0000;
STICKLINE(A7,0,VOLLB,0.8,0),COLORC30000;
STICKLINE(A7,0,VOLLB,0.5,0),COLORD70000;
STICKLINE(A7,0,VOLLB,0.2,0),COLOREB0000;
STICKLINE(A7,0,VOLLB,0.05,0),COLORFF0000;
{STICKLINE(A7,0,VOLLB,2,0),COLORFF8000;}
{}
成交量比:VOL/REF(MA(VOL,5),1)COLORRED,NODRAW;
实时量比YNAINFO(17)COLORYELLOW,NODRAW;
{▇}
DRAWTEXT_FIX(ISLASTBAR,0.000,0.000,0,'▇正常量比'),COLORLIBLUE;
DRAWTEXT_FIX(ISLASTBAR,0.060,0.000,0,'▇温和放量'),COLOR00DCDC;
DRAWTEXT_FIX(ISLASTBAR,0.120,0.000,0,'▇明显放量'),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.180,0.000,0,'▇剧烈放量'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.000,0.120,0,'▇缩量'),COLOR00C800;
DRAWTEXT_FIX(ISLASTBAR,0.040,0.120,0,'▇严重缩量'),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.100,0.120,0,'▇反向操作'),COLORBLUE;
{}
DRAWTEXT(ISLASTBAR,正常线,' ▇▇'),COLORBLACK;
DRAWTEXT(ISLASTBAR,正常线,' 1.0'),COLORWHITE;
DRAWTEXT(ISLASTBAR,关注线,' ▇▇'),COLORBLACK;
DRAWTEXT(ISLASTBAR,关注线,' 1.5'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,放量线,' ▇▇'),COLORBLACK;
DRAWTEXT(ISLASTBAR,放量线,' 2.5'),COLORMAGENTA;

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则