Forum

MQL5 IC Market

I have a little challenge. When I for example use OctaFX or MT5 from this website does my code works. But in IC Market does this code not work. trade.PositionClose Type of account is hedging. The code error is 4756 Also if I open an order with #include<Trade\Trade.mqh> trade.Buy(0.1) I can not use

Why pending order delete it self

I add pending orders . Add two hours for expire. After it add the pending it delete it again after few seconds. Nothing in the code close any kind of order. Any idea why? In journal it just says pending order #... was deleted