Closing only a part of a existing position New comment sunshineh 2012.01.24 15:39 Hi, I can't find the possibility to close only the half of my position. With OrderModify() I can only modify the hole position One position has two deals, how to close one of them? Error 1 and I don't know why Buy only at a close price Simon Gniadkowski 2012.01.24 15:54 #1 Use OrderSelect() then use OrderClose() with OrderLots()/2 . . . . . I reckon, I've never used it. William Roeder 2012.01.24 16:20 #2 OrderLots()/2 will not work. The remainder must be a multiple of lotStep. From my code: https://www.mql5.com/en/forum/137652 New comment
Hi,
I can't find the possibility to close only the half of my position.
With OrderModify() I can only modify the hole position