Forum

Order never rejected

Hi, My market orders are never rejected, why ? A position is everytime opened. (Broker FXPro demo account ) MqlTradeRequest req = { 0 }; req.action = TRADE_ACTION_DEAL ; req.symbol = _Symbol ; req.magic = 1; req.volume = 0.01 ; req.type = ORDER_TYPE_SELL ; // --- Buy is also accepted req.price

Asynchronous onTick() function or bi-directionnal mql<->dll com

Hi, I use a c++ dll into my mql5 EA and i have a big problem, i just can't send orders from my extern dll algorythm. If i write this : onTimer() { while ( true ) { } } the onTick() is never trigger, because there is only one thread allocate for the EA... and it's a big problem. 1st question