Download MetaTrader 5

Slow testing speed on Metatrader 5

To add comments, please log in or register
MundoForex
61
MundoForex 2011.03.26 01:16 

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
MundoForex
61
MundoForex 2011.04.05 04:49  
Could you please consider it for the next MT5 version?
Winsor Hoang
4916
Winsor Hoang 2011.04.05 22:05  

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
To add comments, please log in or register