Slow testing speed on Metatrader 5

 

Hi,

I'm developing a D1 strategy that only trades on open candle, on MT4 it runs quite quickly but on MT5 it is several times slower because MT5 uses 1 minute OHLC ticks even when I choose "Open prices only" in strategy tester. Why don't you let programmer choose ticks period?. Thanks 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Price Constants
  • www.mql5.com
Standard Constants, Enumerations and Structures / Indicator Constants / Price Constants - Documentation on MQL5
 
Could you please consider it for the next MT5 version?
 

Mundoforex,

 Many programmers are having the same problem and it is not MT5. I also ran into this problem before because of the structure of MQL5. Perform a search and you will find the answer.

 

void OnTick()

//+------------------------------------------------------------------+

{  

    MqlTick last_tick;

    MqlTradeResult result;

    MqlTradeRequest request;  

              

 SymbolInfoTick(Symbol(),last_tick);

               Ask = last_tick.ask;

               Bid = last_tick.bid; 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure
  • www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure - Documentation on MQL5