大智慧L2黄金分割线的画法介绍
大智慧L2黄金分割线的画法
{大智慧L2黄金分割线的全新画法(新函数的用法)}
ah:hhvall(h); al:llvall(l); {注意指标叠加该函数有循环或分支中将不准确,慎重使用叠加方式}
ahl:=ah-al;
a23:al+ahl*0.236,coloraaaaaa;
a38:al+ahl*0.382,color00aaaa;
a61:al+ahl*0.618,color00aaaa;
a76:al+ahl*0.764,coloraaaaaa;
{标注数字}y:=999;
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.618,'0.382% '+a38),color00aaaa;
DRAWTEXTREL(0,y*0.764,'0.236% '+a23),coloraaaaaa;
DRAWTEXTREL(0,y-30,'最低 '+ah),coloraaaaaa;
gd18130