Error cannot convert enum in mql5
double iLow( const string symbol, // Symbol ENUM_TIMEFRAMES timeframe, // Period int shift // Shift );
ILow's second parameter is an enumeration, not an int. Cast tf to the enumeration, or define its type as the enumeration.
Compare the above with MT4's definition.
double iLow( string symbol, // symbol int timeframe, // timeframe int shift // shift );
Why is it i get the "cannot convert enum" error in mql5? but not mql4?
In the following i get the error
But if i type it directly into the parameter there is no error?
Or even the enumeration directly there is no error?