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