大智慧可视范围内的黄金分割主图指标公式
-
相关简介:指标源码 ah:hhvall(h); al:llvall(l); ahl:=ah-al; a23:al+ahl*0.236,coloraaaaaa; a38:al+ahl*0.382,color00aaaa; a50:al+ahl*0.50,colorred; a61:al+ahl*0.618,color00aaaa; a76:al+ahl*0.764,coloraaaaaa; {标注数字}y:=999; DRAWTEXTREL(0,0,'138% '+ah),coloraaaaaa; DRAW
-
文章来源:股海网作者:股海网发布时间:2017-09-25浏览次数:
指标源码
ah:hhvall(h); al:llvall(l);
ahl:=ah-al;
a23:al+ahl*0.236,coloraaaaaa;
a38:al+ahl*0.382,color00aaaa;
a50:al+ahl*0.50,colorred;
a61:al+ahl*0.618,color00aaaa;
a76:al+ahl*0.764,coloraaaaaa;
{标注数字}y:=999;
DRAWTEXTREL(0,0,'138% '+ah),coloraaaaaa;
DRAWTEXTREL(0,0,'119% '+ah),coloraaaaaa;
DRAWTEXTREL(0,0,'100% '+ah),coloraaaaaa;
DRAWTEXTREL(0,y*0.236,'0.764% '+a76),coloraaaaaa;
DRAWTEXTREL(0,y*0.382,'0.618% '+a61),color00aaaa;
DRAWTEXTREL(0,y*0.50,'0.50% '+a50),colorred;
DRAWTEXTREL(0,y*0.618,'0.382% '+a38),color00aaaa;
DRAWTEXTREL(0,y*0.764,'0.236% '+a23),coloraaaaaa;
DRAWTEXTREL(0,y-30,'最低 '+ah),coloraaaaaa;
EM3:=EMA(CLOSE,3);
EM8:EMA(c,8);
EM13:=EMA(EM8,13);
ma20:ma(c,20),linethick2;
PARTLINE(ma20,ma20>ref(ma20,1),RGB(255,150,0),ma20<ref(ma20,1),RGB(0,255,0)),linethick2;
drawtextabs(1,5,'所属板块:'+bkname),colorafff00;