![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
You can try the following addendum to my include:
After this your inital MQL4 code should work as is.
Now I understood how it work, Thanks Stanislav Korotky so much.
I would suggest to replace
by
Both functions return a string which makes it easier to replace it under certain conditions!
You can try the following addendum to my include:
After this your inital MQL4 code should work as is.
I added class OBJPROP_DOUBLE_BROKER_EXTENDED to your ind4to5 include and it seems not to be working as in the latest Metaeditor build 1958 call of ObjectSetDouble(chart_ID,name,OBJPROP_PRICE1,price1) returns compilation error 'ObjectSetDouble' - no one of the overloads can be applied to the function call. Any ideas?
I figured out myself that ObjectSetDouble was not included in ind4to5. I added the following code to mqh and it solved the problem.
Note that
#define OBJPROP_TIME1 300
#define OBJPROP_PRICE1 301
#define OBJPROP_TIME2 302
#define OBJPROP_PRICE2 303
#define OBJPROP_TIME3 304
#define OBJPROP_PRICE3 305
Are not showed in this post, you can find them by downloading the file.
Hello,
I believe there is a missing last '}' in the SetIndexStyleMQL4 deffinition.
Thank you for the article, really useful :)
Lucian
bool IsTesting()
bool IsTradeAllowed()
bool IsVisualMode()
Hello,
This old article (may 2010, more than 11 years ago !) was one of the first trying to simplify the process of migrating a script/EA from MQL4 to MQL5. Meantime, the popular mql4compat.mqh has been created, and I just published a maintained version of mql4compat on github for people interested : https://github.com/eromawyn/mql4compat