OrderCheck() failure
Code2219 or probably 2319:
Hi, this piece of code , always leads to the same error.
the ModifyReq is filled just as Trade.mqh is filling it before sending a modification order.
Hi, this piece of code , always leads to the same error.
the ModifyReq is filled just as Trade.mqh is filling it before sending a modification order.
when this 10013 retcode is returned ? and what does it mean a trade being INVALID ?
Sorry, my bad.
I was not doing it the same way trade.mqh is filling the request structure.
for anyone making my mistake when using ordercheck() function before doing trade operations, elements of the request structure must be initiated to zero, or just ZeroMemory()ed.
the ModifyReq is filled just as Trade.mqh is filling it before sending a modification order.
when this 10013 retcode is returned ? and what does it mean a trade being INVALID ?