通达信强弱VOL副图源码
将一发千钧老师的理念用于成交量,充分体验量比的分析价值要远高于换手率。
{强弱VOL}
PV:=INDEXV;
LB1:=V/REF(MA(V,5),1);LB2:=PV/REF(MA(PV,5),1);
A1:=LB1>LB2;A2:=LB1<LB2;
A3:=LB1>1.3*LB2 AND LB1<=2*LB2;A4:=LB1>2*LB2;
A5:=LB2>1.3*LB1 AND LB2<=2*LB1;A6:=LB2>2*LB1;
低于大盘:STICKLINE(A2,H,L,0,0),COLORDDDD00;
STICKLINE(A2,O,V,3,0),COLOR888800;
STICKLINE(A2,O,V,1.5,0),COLORAAAA00;
STICKLINE(A2,O,V,1,0),COLORCCCC00;
弱于大盘:STICKLINE(A5,H,L,0,0),COLORGREEN;
STICKLINE(A5,O,V,3,0),COLOR008800;
STICKLINE(A5,O,V,1.5,0),COLOR00AA00;
STICKLINE(A5,O,V,1,0),COLOR00CC00;
超弱大盘:STICKLINE(A6,H,L,0,0),COLORFF0000;
STICKLINE(A6,O,V,3,0),COLOR880000;
STICKLINE(A6,O,V,1.5,0),COLORAA0000;
STICKLINE(A6,O,V,1,0),COLORCC0000;
领先大盘:STICKLINE(A1,H,L,0,0),COLORFF00FF;
STICKLINE(A1,O,V,3,0),COLOR880088;
STICKLINE(A1,O,V,1.5,0),COLORAA00AA;
STICKLINE(A1,O,V,1,0),COLORCC00CC;
强于大盘:STICKLINE(A3,H,L,0,0),COLOR0000FF;
STICKLINE(A3,O,V,3,0),COLOR000088;
STICKLINE(A3,O,V,1.5,0),COLOR0000AA;
STICKLINE(A3,O,V,1,0),COLOR0000CC;
超强大盘:STICKLINE(A4,H,L,0,0),COLOR00FFFF;
STICKLINE(A4,O,V,3,0),COLOR008888;
STICKLINE(A4,O,V,1.5,0),COLOR00AAAA;
STICKLINE(A4,O,V,1,0),COLOR00CCCC;
V5:MA(V,5);V10:MA(V,10);V21:MA(V,21);V55:MA(V,55);V135:MA(V,135);