乖离韵律(副图 源码)
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2012-04-08 09:10:00
公式简介:
说明:背离只有发生在高位(MBN大于10)或低位(MBN小于-10)时才有较好的操作指导意义
如果短时间内,连续发出顶(底)背离信号,则往往预示后市将有一波强劲而快速的下跌(上涨).
N:=55;
B5:(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
B10:(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;
MB10:MA((CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100,3);
BN:(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100;
MBN: MA(((CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100),8);
Z:0;
STICKLINE(MBN>0 AND MBN>REF(MBN,1),MBN,0,2,0),COLORRED;
STICKLINE(MBN<0 AND MBN<REF(MBN,1),MBN,0,2,0),COLORBLUE;
STICKLINE(MBN>0 AND MBN<REF(MBN,1),MBN,0,2,0),COLORYELLOW;
STICKLINE(MBN<0 AND MBN>REF(MBN,1),MBN,0,2,0),COLORGREEN;
{股旁网-股票公式网站 www.GupAng.com}
A1:=BARSLAST(REF(CROSS(BN,MBN),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND BN>REF(BN,A1+1) AND CROSS(BN,MBN);
STICKLINE(底背离,0,0.008,8,0),COLORRED,LINETHICK3;
DRAWLINE(A1=0,MBN,底背离,MBN,0),COLORRED,LINETHICK3;
A2:=BARSLAST(REF(CROSS(MBN,BN),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(MBN,A2+1)>BN AND CROSS(MBN,BN);
DRAWLINE(A2=0,MBN,顶背离,MBN,0),COLORGREEN,LINETHICK3;
[url=http://www.goodgupiao.com/gupiaogongshi/19005.html][B]乖离韵律(副图 源码)[/B][/url]