Forum

Error 5031 with OrderOpen

Hello, I can't place a pending order. I always receive the error 5031. It is specified by metatrader that 5031 is a date error but even when I specify the ORDER_TIME_GTC option so no expiration, it keeps giving me this error I really don't understand why .. :/ if (!TradeManager.OrderOpen( _Symbol

RequestPosition return always 0

Hello, My positions open well but the RequestPosition still return me 0. I tried in the debugger mode but the RequestPosition doesn't update and stays at 0 Thank you in advance for your help