https://www.mql5.com/en/forum/161496
Seems like converting mql4 to mql5 is going to be tricky.

- 2016.11.18
- www.mql5.com
hello
MQL4 and MQL5 are quite two different language, a lot of things changed...
in MQL5, iMA() will return a handle , and you have to use CopyBuffer() to get MA data...
i guess, you have not learned MQL5 yet,
you just want to write MQL5 program with MQL4... this is impossible...
this wont take you much time...
There is an important rule in MQL5: the indicator handle SHOULD be received ONLY ONCE !!! And you need to do this in OnInit () !!!
An example of an iMA-based indicator: MA Color N Bars

- www.mql5.com
Thanx for the info guyz.
I'm busy learning the basics of mql5 but sometimes the videos are for mql4.
When there are times I cant figure out how to convert, I just move on until I understand more.
I haven't been doing too bad so far but I can see it's going to take practise.
Much appreciated.
Johann.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I've bough mql5 fundamentals on *** and busy watching youtube videos by ***
Jimdandy explains things very well.
Problem is most of his videos are for mql4. I've been building an indicator translating from mql4 to mql5 and hit a bit of a bump.
Can someone please look at his code and make out where the problem lies.
Running realtime shows a red line at
Much appreciated.
Johann.