
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
I'm not familiar with MT3 but I assume that code that ran on MT3 also ran on MT4 . . . this is the problem with MT4 --> MT5 and is why the situation is different.
The majority of MT4 users can't code, if their favourite Indicators on MT4 don't exist on MT5 then they won't use MT5.
As far as I know MT3 code don't ran on MT4, the language is very different. This debate about MT4/MT5 is endless, there is a lot of factors that leads to the survival of MT4, I am not even sure that MT5 was intended to completely replace MT4.
Anyway, about the new version, Metaquotes said it will be backward compatible at ex4 level, but not really at mq4 level.
I had a quick look through the new metaeditor help, the new version mql4 looks a lot more different from the old version than I thought it would be.
As far as I know MT3 code don't ran on MT4, the language is very different. This debate about MT4/MT5 is endless, there is a lot of factors that leads to the survival of MT4, I am not even sure that MT5 was intended to completely replace MT4.
Anyway, about the new version, Metaquotes said it will be backward compatible at ex4 level, but not really at mq4 level.
As far as I know MT3 code don't ran on MT4, the language is very different. This debate about MT4/MT5 is endless, there is a lot of factors that leads to the survival of MT4, I am not even sure that MT5 was intended to completely replace MT4.
Anyway, about the new version, Metaquotes said it will be backward compatible at ex4 level, but not really at mq4 level.
To me it looks like it is supposed to be backwards compatable at the mq4 level, the included custom indicators are the original mql4 versions with a change the name of the init() function they compile in the new compiler and run on the new terminal, that has to mean we can still code indicators using IndicatorCounted() if we want to ...
init() is now called int OnInit(void) and it does return(INIT_SUCCEEDED);
To me it looks like it is supposed to be backwards compatable at the mq4 level, the included custom indicators are the original mql4 versions with a change the name of the init() function they compile in the new compiler and run on the new terminal, that has to mean we can still code indicators using IndicatorCounted() if we want to ...
init() is now called int OnInit(void) and it does return(INIT_SUCCEEDED);
Sorry but it won't be backward compatible at mq4 level, see the announcement of first beta.
Differences from the old MQL4 version:
Changed the priority of AND/OR logical operations. Now, everything is similar to the standard C/C++
Introduced shortened evaluation of logical expressions. Now, when a logical expression is evaluated before reaching its end, the remaining subsequent expressions are not evaluated, like in C/C++.
Only integer values are now used in switch operator. Real values could have been used before
A dot symbol cannot be used in variable names any more. Also, '@', '$' and '?' symbols cannot be used in variable names
Tightened requirements for start function. Parameters could have been set in start function before. Now, all init, start, deinit, OnInit, OnStart, OnTick, OnTimer and other entry points should exactly match their signatures
Due to expansion of keywords, such names as short, long, float, const, virtual, input, delete, new, do, char cannot be used now
Now, imported dll functions cannot accept MQL string arrays as a parameter, like in MQL5
The differences are not critical and can be easily corrected in the code. In return, we access multiple MQL5 features, improved execution speed and much more strict quality control.
...
init() is now called int OnInit(void) and it does return(INIT_SUCCEEDED);
I like the new features in metaeditor
I think when the new version is released it will cause a lot of confusion on the forum for newbies because the new mql4 documentation is based on mql5 coding. That means much of what is described on this forum and in the codebase will be contradicted by the mql4 docs.
Setting up an indicator buffer from the new mql4 docs: (This actually has errors in it and won't compile)
I think when the new version is released it will cause a lot of confusion on the forum for newbies because the new mql4 documentation is based on mql5 coding. That means much of what is described on this forum and in the codebase will be contradicted by the mql4 docs.
Setting up an indicator buffer from the new mql4 docs: (This actually has errors in it and won't compile)
Have you already been coding in MQL5 angevoyageur ?