K线图中显示5%的标尺,便于看盘。(源码,图)介绍
K线图中显示5%的标尺,便于看盘。(源码,图)
在K线图中用接近背景色的虚线显示出上下10%空间的标尺,每隔5%画一条标尺线,有助于明示k线实体的大小,显示k线的空间和攻击力度。
源码如下:
{k线标尺}
MA1:MA(CLOSE,P1);
MA2:MA(CLOSE,P2);
MA3:MA(CLOSE,P3);
MA4:MA(CLOSE,P4);
MA5:MA(CLOSE,P5);
MA6:MA(CLOSE,P6);
MA7:MA(CLOSE,P7);
HORILINE(BARSTATUS=2,ref(c,1)*1.1,HIGH>=HHV(HIGH,200),1),color333333,DotLINE,LAYER7;
HORILINE(BARSTATUS=2,ref(c,1)*0.9,HIGH>=HHV(HIGH,200),1),color333333,DotLINE,LAYER7;
HORILINE(BARSTATUS=2,ref(c,1)*1,HIGH>=HHV(HIGH,200),1),color333333,DotLINE,LAYER7;
HORILINE(BARSTATUS=2,ref(c,1)*0.95,HIGH>=HHV(HIGH,200),1),color333333,DotLINE,LAYER7;
HORILINE(BARSTATUS=2,ref(c,1)*1.05,HIGH>=HHV(HIGH,200),1),color333333,DotLINE,LAYER7;
gd14430