用法说明:5日乖离率在中国股市实战中最为有效,准确反映最近5日内买入者的获利情况,5日正乖离越大,表示短线获利越大,风险程度提高,5日乖离为+3 时为警戒区,达到+5或更高坚决卖出;5日负乖离越大,表示短线下跌越深,风险减少,当负乖离达到-3时为安全区,达到-5或更低要坚决买入。5日乖离率 跌至罕见的低点-6.36,在前个交易甚至短期创出了乖离为-7的纪录,然而指数在下跌,乖离率却拒绝下跌,这就是底背离,应重仓买入,当时市场一片恐 慌,但乖离率提示的在-5以下均为极佳买入时机,即使短线被套,但也会在短期解套,此时进取性的投资者果断入场,股指急速回升。具体用法可仔细揣摩。
{参数: N:2,250,12;N1:2,250,24}
AS5:(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,COLORYELLOW,NODRAW;
bias1:(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100,COLORGREEN,NODRAW;
BIAS2:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100,COLORGREEN,STICK,LINETHICK3;
分界线:=BIAS1>=0;
DRAWBAND(分界线,RGB(90,50,180),AS5,(50,50,180));
BIAS:(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100,COLORRED;
上轨:MA(BIAS1,20)+1.618*STD(BIAS2,20),COLORLIGRAY,crOSSDOT;
下轨:MA(BIAS1,20)-1.618*STD(BIAS2,20),COLORLIGRAY,CROSSDOT;
【最高】:=BIAS1*1.1,COLORGREEN;
【最低】:=BIAS1*0.90,NODRAW;
【收盘】:=BIAS1,NODRAW;
【开盘】:=REF(【收盘】,1),NODRAW;
STICKLINE(【收盘】>=【开盘】,【最高】,【最低】,0,0),COLORYELLOW;
STICKLINE(【收盘】>=【开盘】,【收盘】,【开盘】,1.5,1),COLORYELLOW;
STICKLINE(【收盘】<【开盘】,【最高】,【最低】,0,0),COLOR00FF00;
STICKLINE(【收盘】<【开盘】,【收盘】,【开盘】,1.5,1),COLOR00FF00;
变异:IF(BIAS< REF(BIAS,1),BIAS,DRAWNULL),COLORLIGREEN,LINETHICK1;
STICKLINE(AS5>0 AND AS5>REF(AS5,1),AS5,分界线,0,0),COLOR00ACCC;
UP1:=HHV(BIAS,55);
UP2:=LLV(BIAS,55);
UP3:=BIAS-(BIAS1-BIAS);
UP:IF(BIAS1>UP1 AND BIAS=UP1,MAX(LLV(UP1,10),UP3),UP1),COLORBB9A00;
DN:IF(BIAS1<UP2 AND BIAS=UP2,MIN(HHV(UP2,10),UP3),UP2),COLORBB9A00;
{叠加百分线}
JB:=BIAS1;
EE:=CURRBARSCOUNT<=200;
HH:=CONST(HHV(JB,200));
LL:=CONST(LLV(JB,200));
天:HH,POINTDOT,COLORLIGREEN;
地:LL,POINTDOT,,COLORLIGREEN;
{股旁网-股票公式网站 WWW.GUPANG.COM}
强:CONST(HH-(HH-LL)*1/5),POINTDOT,COLORLIGRAY;
中:CONST(HH-(HH-LL)*1/2),POINTDOT,COLORLIGRAY;
弱:CONST(HH-(HH-LL)*4/5),POINTDOT,COLORLIGREEN;