用DDX表示K线宽度的压缩K线指标(副图、源码、操作方式、贴图、无未来)介绍
用DDX表示K线宽度的压缩K线指标(副图、源码、操作方式、贴图、无未来)
指标中空心K线是阳线实心K线是阴线,红色K线表示DDX大于零(即主力吸筹),蓝色K线表示DDX小于零(即主力出货),K线宽度表示DDX的大小。主力进出货在图上一目了然。
{DDX压缩K线}
DDX:=(BIGORDER(1) - BIGORDER(2)) * VOL/CAPITAL * 100;
KD:=8+30*abs(DDX);
STICKLINE(C>O and ddx>=0 ,O,C,KD,1),Color0000FF;
STICKLINE(C>O and ddx>=0 ,O,L,0.1,1),Color0000FF;
STICKLINE(C>O and ddx>=0 ,C,H,0.1,1),Color0000FF;
STICKLINE(C>O and ddx<0 ,O,C,KD,1),ColorFFFF00;
STICKLINE(C>O and ddx<0 ,O,L,0.1,1),ColorFFFF00;
STICKLINE(C>O and ddx<0 ,C,H,0.1,1),ColorFFFF00;
STICKLINE(C=O and ddx>=0 ,O,C,KD,1),Color0000FF;
STICKLINE(C=O and ddx>=0 ,O,L,0.1,1),Color0000FF;
STICKLINE(C=O and ddx>=0 ,C,H,0.1,1),Color0000FF;
STICKLINE(C=O and ddx<0 ,O,C,KD,1),ColorFFFF00;
STICKLINE(C=O and ddx<0 ,O,L,0.1,1),ColorFFFF00;
STICKLINE(C=O and ddx<0 ,C,H,0.1,1),ColorFFFF00;
STICKLINE(C<O and ddx>=0 ,O,C,KD,0),Color0000FF;
STICKLINE(C<O and ddx>=0 ,O,L,0.1,0),Color0000FF;
STICKLINE(C<O and ddx>=0 ,C,H,0.1,0),Color0000FF;
STICKLINE(C<O and ddx<0 ,O,C,KD,0),ColorFFFF00;
STICKLINE(C<O and ddx<0 ,O,L,0.1,0),ColorFFFF00;
STICKLINE(C<O and ddx<0 ,C,H,0.1,0),ColorFFFF00;
M5:MA(C,5),ColorFFFFFF,PRECIS2;
M10:MA(C,10),Color00FFFF,PRECIS2;
M18:MA(C,18),ColorFF00FF,PRECIS2;
M30:MA(C,30),Color00FF00,PRECIS2;
M60:MA(C,60),Color0000FF,PRECIS2;
M120:MA(C,120),ColorFFFF00,PRECIS2;
gd15951