PDA

View Full Version : AddObject OBJ_VLINE



blaidd drwg
06-11-2014, 08:46 PM
Hi,
how to simply add OBJ_VLINE to current window at last closed candle ?
Simple AddObject creates the object (I can see it in objects list),
but vline never appears in window.
BR

Hassan-HS
06-12-2014, 07:33 AM
Hello,
Thanks for your post.

This code add a VLine over the last closed candle, please check it and update me if you have another inquiry.





AddObject 0,"VLine",OBJ_VLINE,0,GetTime(0,bars(0)),GetClose(0,bars(0) )

blaidd drwg
06-12-2014, 04:26 PM
works perfect :-)
thank You