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
Currently working on porting back an EA from MQL5 to MQL4. It was originally written i MQL4 but I needed the MultiCurrency functionality and tester functionality in MQL5 in order to
get it fully tested. I am now porting it back to MT4 using the compiler directives to be able to keep a single source and different incudes/classes.
In MQL4 filling an array can be done with iMA and I can do it so the newest value is at index 0.
In MQL5 its quite different and I also have to use the function ArraySetAsSeries to get it right
The ArraySetAsSeries is alo available in MQL4
So.
What happens if I create an array with the help of iMA and put the latest entry at index 0 and have previously applied ArraySetAsSeries on that array?
Will it have any effect whatsoever? In what specific instances is it proper to use ArraySetAsSeries in MQL4?