Libraries: TimeGMT library for the strategy tester - page 3

 
Add the following code at the beginning of the file to ensure compatibility with MQL4. This will help those who need MQL4 support.
#ifdef __MQL4__
#undef TimeTradeServer
#undef SYMBOL_CALC_MODE_FOREX
#undef SYMBOL_CALC_MODE_FOREX_NO_LEVERAGE
#undef SymbolExist
#define TimeTradeServer                      TimeCurrent
#define SYMBOL_CALC_MODE_FOREX               0
#define SYMBOL_CALC_MODE_FOREX_NO_LEVERAGE   0
#define SymbolExist(x, y)                    false
#endif 
 

Update 21 October 2024 - version 1.40

Improved detection of the GOLD symbol with fallback to EURUSD symbol.

 

Update 22 October 2024 - version 1.45

Faster determination of the server's GMT offset during weekend in the strategy tester.

Improved debugging messsages used during the code testing.

 

Update 26 October 2024 - version 1.47

Added better error-handling and debugging code.

Renamed the HistoryBrokerOffset() method to TimeServerGMTOffset().

 

Update 28 October 2024 - version 1.49

Converted all macros for dealing with time to functions to avoid double evaluation of parameters inside macro body. More code clean-up in other lines.


 

Update 23 November 2024 - version 1.55

Added an option to switch off the default loading of Gold symbol for estimation of the server's TZ/DST.

Call CTimeGMT::SetUsingGoldSymbol() with 'false' to use the current chart's symbol, instead.

 

Update 12 December 2024 - version 1.60

Improved performance of HistoryServerGMTOffset() function and other minor code changes.