There are two reliable ways to convert an MT4 indicator to MT5:Hello, I have the same situation. Did you find the solutions? please share coz I need to convert my mt4 indicator as well.
It's this one? can someone convert to mt5
Yeah, I included those files using the #include setting and ended up with over 100 errors. The majority of the errors are things like this "@kizerage212 .mqh files that are attached in that post as separate files (KimIVToMT5.mqh, ProfitMeter.mqh, and ind4to5.mqh) should go into /MQL5/Include/. The contents of the archive (MT4Orders.zip) should go to /MQL5/ (Experts to Experts, Scripts to Scripts, Include to Include).
Non-latin characters inside the files are most likely commentaries written in Russian. You can simply ignore them.
See my answer to @doyathink regarding using the files.
Using the files doesn't require in-depth knowledge of MQL4/5 coding but it does require knowing some coding basics. Even in good cases, there will be errors that would need to be corrected when using such conversion method.
Calling indicator values is fundamentally different in MQL5 from MQL4. You can refer to these two articles for basics of how to convert those parts of code:Yeah, I included those files using the #include setting and ended up with over 100 errors. The majority of the errors are things like this "
'iMA' - no one of the overloads can be applied to the function call and
could be one of 2 function(s) with
built-in: int iMA(const string,ENUM_TIMEFRAMES,int,int,ENUM_MA_METHOD,int) or
double iMA(string,ENUM_TIMEFRAMES,int,int,ENUM_MA_METHOD,ENUM_APPLIED_PRICE,int) " So you need to know some code understanding of how things are working. And you actual line of code it is flagging on in this example is " hiprice = iMA(NULL,0,1,0,0,Price,shift);" Is there some reference to help figure out how to fix these?