bias优化指标
DRAWGBK(CLOSE=CLOSE,COLORRGB(30,30,60),COLORRGB(30,30,60),1);
STICKLINE(C,-10,-10,10,0 ),COLOR00AAFF,LINETHICK2;
STICKLINE(C,20,20,10,0 ),COLOR00FF,LINETHICK2;
n1:=5;n2:=13;n3:=34;
BIAS1 :=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100,PRECISION2;
BIAS2 :=(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100,PRECISION2;
BIAS3 :=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100,PRECISION2;
macd:=bias3-bias2,COLORSTICK,PRECISION2;
MACD2:=MACD;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,2,0 ),COLOR00AAFF;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.8,0 ),COLOR00BBFF;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.3,0 ),COLOR00CCFF;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.2,0 ),COLOR00DDFF;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1,0 ),COLOR00EEFF;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,0.5,0 ),COLOR00FFFF;
STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,5,0 ),COLOR0000AA;
STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,4 ,0 ),COLOR0011BB;
STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,3,0 ),COLOr0022CC;
STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,2,0 ),COLOR0033DD;
STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,1,0 ),COLOR0044EE;
STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,0.5 ,0 ),COLOR0055FF;
STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,5,0 ),COLORAA00BB;
STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,4 ,0 ),COLORBB11BB;
STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,3,0 ),COLORCC22BB;
STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,2,0 ),COLORDD33BB;
STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,1 ,0 ),COLOREE44BB;
STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,0.5,0 ),COLORFF55BB;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,2,0 ),COLORFF7700;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.5 ,0 ),COLORFF8811;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.2,0 ),COLORFFAA22;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.0 ,0 ),COLORFFBB33;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,0.8 ,0 ),COLORFFDD44;
STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,0.5 ,0 ),COLORFFFF55;
hhd:=HHV(bias3,55);
lld:=LLV(bias3,55);
mmd:=(hhd-lld);
强弱:mmd*0.5+lld,LINEDOT,COLORWHITE;
超买:mmd*0.809+lld,LINEDOT,COLORBLUE;
启动:mmd*0.119+lld,LINEDOT,COLORMAGENTA;
AA:=IF(BIAS2>BIAS1,BIAS2-BIAS1,0);
BB:=IF(BIAS3>BIAS2,BIAS3-BIAS2,0);
CC:=IF(BIAS3>BIAS1,BIAS3-BIAS1,0);
SS:(AA+BB+CC)/3,ColorFF0080,LINETHICK,PRECISION2;
PARTLINE(SS>0 AND SS<=REF(SS,1),SS),COLORCYAN,LINETHICK2;
PARTLINE(SS>REF(SS,1) AND SS>0,SS),ColorFF0080,LINETHICK2;
Q1:bias1,COLORWHITE,PRECISION2;
Q2:bias2,COLOR1477FF,PRECISION2;
Q3:bias3,COLORFF,PRECISION2;
- 上一篇:漂亮的筹码副图选股预警 2015/7/23
- 下一篇:精准无未来主图指标 2015/7/23