close specific trade using orderticket()
hello, how do i close specific order using OrderClose(). i did get the value of the OrderTicket() but i cannot close it. i think i have problem on my code
Karl Robeck:
hello, how do i close specific order using OrderClose(). i did get the value of the OrderTicket() but i cannot close the specific order. i think i have problem on my code
hello, how do i close specific order using OrderClose(). i did get the value of the OrderTicket() but i cannot close the specific order. i think i have problem on my code
if(OrderSelect(TicketOrder,SELECT_BY_POS,MODE_TRADES))
Should be
if(OrderSelect(TicketOrder,SELECT_BY_TICKET))