有盆友问俺有没有均线角度的指标,俺找了找,是很久以前用过的指标了,现在从新翻找出来,分享给大家:
首先申明,俺不大会用该指标,据说是拿来选股的。
图片说明:红绿空心柱子为短期均线角度jd1,黄青实心柱子为短期均线角度jd2;土黄白灰色带为中期均线角度jd3;底边为长期均线角度背景。
均线角度
a:=(h+l+0+c)/4;
b:=(ma(a,n1)-ref(ma(a,n1),1))/0.015*avedev(a,n1);
{O(∩_∩)O~,不需要的把前面删了}
{正文开始}
{n1:2,200,5}
{n2:2,200,10}
{n3:2,300,25}
{n4:2,200,60}
n1:=5;n2:=10;n3:=25;n4:=60;
JD1:ATAN((MA(C,N1)/REF(MA(C,N1),1)-1)*100)*180/3.1816,NODRAW;
JD2:ATAN((MA(C,N2)/REF(MA(C,N2),1)-1)*100)*180/3.1816,NODRAW;
JD3:ATAN((MA(C,N3)/REF(MA(C,N3),1)-1)*100)*180/3.1816,NODRAW;
JD4:ATAN((MA(C,N4)/REF(MA(C,N4),1)-1)*100)*180/3.1816,NODRAW;
DRAWBAND(JD3,RGB(182,99,11),0,RGB(88,77,66));
STICKLINE(JD1>=0,0,JD1,2,2),COLORRED;
STICKLINE(JD1<=0,0,JD1,2,2),COLORGREEN;
STICKLINE(JD2>=0,0,JD2,0.8,0),COLORYELLOW;
STICKLINE(JD2<=0,0,JD2,0.8,0),COLORLICYAN;
STICKLINE(JD4>=0,-80,-65,1,0),COLORRED;
STICKLINE(JD4<=0,-80,-65,1,0),COLORBLUE;