|
ah:hhvall(h); al:llvall(l); {注意指标叠加该函数用于循环或分支中将不准确} ahl:=ah-al; a19:al+ahl*0.191,coloraaaaaa; a38:al+ahl*0.382,color00aaaa; a61:al+ahl*0.618,color00aaaa; a80:al+ahl*0.809,coloraaaaaa; a50:al+ahl*0.50,coloraaaaaa; {标注数字}y:=999; DRAWTEXTREL(0,0,'100% '+ah),coloraaaaaa; DRAWTEXTREL(0,y*0.191,'0.809% '+a80),coloraaaaaa; DRAWTEXTREL(0,y*0.382,'0.618% '+a61),color00aaaa; DRAWTEXTREL(0,y*0.618,'0.382% '+a38),color00aaaa; DRAWTEXTREL(0,y*0.809,'0.191% '+a19),coloraaaaaa; DRAWTEXTREL(0,y-30,'最低 '+al),coloraaaaaa; |
|