OwnName = "tExtent"; ObjectDelete(OwnName ); ObjectCreate(OwnName , OBJ_LABEL, 0, 0, 0); ObjectSetText(OwnName ,""+ abc +" A", 10, "Arial", White); ObjectSet(OwnName , OBJPROP_CORNER, 1); ObjectSet(OwnName , OBJPROP_XDISTANCE, X); ObjectSet(OwnName , OBJPROP_YDISTANCE, Y);X,Y分别是横坐标和纵坐标,abc换成你要显示的变量名。
我想在主图上做一个标示,在价格线上最右侧显示盈亏点数,Y轴好办,可X轴怎么也不好搞,因为不固定,有没有方式总让物件与窗口是右对齐呀?请高手指教x轴的坐标怎么设置,我看过一个指标就可以,我传一下,但是是EX4文件,没法编辑,谢谢!