Download MetaTrader 5

MT5 tester - Trade is disabled

To add comments, please log in or register
Miroslav Popov
365
Miroslav Popov 2016.06.23 06:58 

I'm receiving this error in the MT5 tester:

 

 

 

 

            ResetLastError();

            MqlTick tick;
            SymbolInfoTick(_Symbol, tick);

            double orderLots       = NormalizeEntrySize(lots);
            double stopLossPrice   = GetStopLossPrice(type, stopLoss);
            double takeProfitPrice = GetTakeProfitPrice(type, takeProfit);

            MqlTradeRequest request;
            MqlTradeResult result;
            MqlTradeCheckResult check;
            ZeroMemory(request);
            ZeroMemory(result);
            ZeroMemory(check);

            request.action       = TRADE_ACTION_DEAL;
            request.symbol       = _Symbol;
            request.volume       = orderLots;
            request.type         = (type == OP_BUY) ? ORDER_TYPE_BUY : ORDER_TYPE_SELL;
            request.type_filling = ORDER_FILLING_FOK;
            request.deviation    = 10;
            request.sl           = stopLossPrice;
            request.tp           = takeProfitPrice;
            request.comment      = OrderComment;

            bool isOrderCheck = OrderCheck(request, check);
            string retcode = ResultRetcodeDescription(check.retcode);

            if (!isOrderCheck)
                Print("Error: ", __FUNCTION__, "(): OrderCheck(): ", retcode);

 

Any ideas?

 It is Alpari-Ltd-MT5: Demo Account - Hedge

Miroslav Popov
365
Miroslav Popov 2016.06.23 07:19  

Doesn't MT tester test because of the BREXIT vote today?

Stephen Njuki
5180
Stephen Njuki 2016.06.23 12:50  
I have  a similar problem with build 1347 for GBP pairs on a live account!
david mackay
2212
david mackay 2016.06.23 15:52  

Same problem on InstaForex!

 

I think there is a change in MT5 that has an error as this problem is very recent. 

Miroslav Popov
365
Miroslav Popov 2016.06.24 11:05  

up

Aliaksandr Kryvanos
5931
Aliaksandr Kryvanos 2016.06.24 15:09  
Roboforex non-hedge same error today (build 1347)
To add comments, please log in or register