I need your help to explain me how to use the function of Time in MT5 which is exit in MT4 but not in MT5. How can I fix it in MT5?
"In MQL5 chart period constants changed, and some new time periods (M2, M3, M4, M6, M10, M12, H2, H3, H6, H8, H12) were added."
Thanks this article really helps
check this one too
I mean seriously... compare this code to express the same idea.. and are you still wondering why MQL5 has been a failure? Why change it to copy time or not make some compatibility so we dont have to rewrite all indicators? Omg...
//--- variables for function parameters
int start = 0; // bar index
int count = 1; // number of bars
datetime tm; // array storing the returned bar time
//--- copy time
//--- output result
Why not, simply use:
These were added somewhat later.
#define DEFINE_TIMESERIE(NAME, T) \
class CLASS##NAME \
T operator( const int iPos ) const \
return(::i##NAME(_Symbol, _Period, iPos)); \
Forum on trading, automated trading systems and testing trading strategies
Time in MT4 but no in MT5
Luis Alejandro Diaz Vidal, 2018.03.04 16:37