网友求助:
请高手帮忙,在最近十天的每根K线上方显示数字顺序,做个公式。
如附图样子,谢谢!
解答如下:
DRAWTEXT(BARPOS=SYSPARAM(3),h+0.2,'10'),colorff00ff;
DRAWTEXT(BARPOS=SYSPARAM(3)-1,h+0.2,'9'),colorff00ff;
DRAWTEXT(BARPOS=SYSPARAM(3)-2,h+0.2,'8'),colorff00ff;
DRAWTEXT(BARPOS=SYSPARAM(3)-3,h+0.2,'7'),colorff00ff;
DRAWTEXT(BARPOS=SYSPARAM(3)-4,h+0.2,'6'),colorff00ff;
DRAWTEXT(BARPOS=SYSPARAM(3)-5,h+0.2,'5'),colorff00ff;
DRAWTEXT(BARPOS=SYSPARAM(3)-6,h+0.2,'4'),colorff00ff;
DRAWTEXT(BARPOS=SYSPARAM(3)-7,h+0.2,'3'),colorff00ff;
DRAWTEXT(BARPOS=SYSPARAM(3)-8,h+0.2,'2'),colorff00ff;
DRAWTEXT(BARPOS=SYSPARAM(3)-9,h+0.2,'1'),colorff00ff;