MQL4 to MQL5 is not compatible.(without function conversion libs)
However, MQL5 to MQL4 is compatible to some extend,
There are some issues with for example timeframes and trade functions,
But for the most of it, it's usable.
Example EA please!
These functions are not part of the language (MQL4). These are part of the History API.
Do you understand the difference between languages and API?
NOT part of MQL4?
That's a screenshot of the MQL4 Language reference manual.
Please stop with your misinformation and childish behavior.
You can just try the functions to see whether it accepts them or not.
It's not that hard is it ?
If you click here you can see that the documentation has been updated.
Aside from the classic MarketInfo() Function there are added functions:
Returns the double value of the symbol for the corresponding property
Returns a value of an integer type (long, datetime, int or bool) of a specified symbol for the corresponding property
Allows receiving time of beginning and end of the specified quoting sessions for a specified symbol and day of week.
Allows receiving time of beginning and end of the specified trading sessions for a specified symbol and day of week.
Returns a value of the string type of a specified symbol for the corresponding property
Returns the current prices for the specified symbol in a variable of the MqlTick type
Returns the name of a specified symbol
Selects a symbol in the Market Watch window or removes a symbol from the window
Returns the number of available (selected in Market Watch or all) symbols
Now where would those come from ?
Go read the documentation.
I have just given you examples.
Not a single proof of the incompatibility of languages you have not resulted. I showed examples of MQL4-advisors who work without problems in MT5.
Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий
fxsaber, 2016.09.03 11:18
Вы можете это проверить в MT5-тестере.
// Это MT5-советник, который позволяет запускать соответствующий
// MT4-советник в мультивалютном MT5(Hedge)-тестере (с реальными тиками)
//#include "Spreader_v1.mq4" // https://www.mql5.com/ru/code/9484
#include "Spreader_v2.mq4" // https://www.mql5.com/ru/code/9495
Результат мультивалютного бэктеста с дефолтными настройками в режиме EURUSD M1 OHLC
Подробности в файле отчета.
There was a clear answer in this thread
Forum on trading, automated trading systems and testing trading strategies
Is MQL5 backward compatible with MQL4?
Stanislav Korotky, 2017.10.11 22:48
It's compatible by means of 3-rd party libraries (includes), which should be #included into your EA source code.
You may find such solutions in the source code base, blogs, and articles. For example: Ready-made Expert Advisors from the MQL5 Wizard work in MetaTrader 4
Now here is a list of MQL4 Functions: https://docs.mql4.com/function_indices
Sorry to bust your bubble saber, but iHigh,iLow,iOpen,iClose are in there.
Well maybe you need to read a bit better.
Nobody says that EX4 is launched on MT5. It's just that you can write advisors on MQL4, while having them run on MT5, not knowing the MQL5 at all.
I find it interesting that you refuse to accept proof when it is presented to you.
I gave you an simple EA to copy and paste for example.
The code is MQL4 and is NOT compatible with MQL5.
The screenshots prove this fact.
The only way you can make it work is to update the code and use a third party included library.
Also, If you were provided the .ex4 compiled version of the source code, MT5 would not recognize this file, and it would load properly onto an MT5 chart.
In addition, MT4 supports EA and Indicators which work with OFFLINE Renko custom time frame charts.
This is something which MT5 absolutely does NOT support.
This list goes on....
Look at the phrases my opponent uses.
I'm not your opponent. I am just a programmer who is trying to educate you and help you to understand that you do not understand what you are talking about.
I have provided you multiple examples of MQL4 and MQL5 incompatibilities.
Please stop providing false information to people.