Hi MQL5 experts,
I'm trying to retrieve the dynamic array values for the Open and Close values in MQL5 - the equivalent of Open[] and Close[] in MQL4
Here is my attempt which is not working.
Do you guys see any obvious errors in my code? Or is there a more efficient way to retrieve the values?
Sorry guys, school buy error. I've used "CopyHigh" for my Close code!
Still, always looking for more efficient ways to do things, so chime in if there's a better way!
Regards, Tim
Hello you can also directly use
iOpen(_Symbol,PERIOD_CURRENT,position); and iClose(_Symbol,PERIOD_CURRENT,positon);
Hello you can also directly use
Allowed since New MetaTrader 5 Platform build 1860: MQL5 functions for operations with bars and Strategy Tester improvements - MQL5 programming forum 2018.06.14
Two years later still not in the documentation.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi MQL5 experts,
I'm trying to retrieve the dynamic array values for the Open and Close values in MQL5 - the equivalent of Open[] and Close[] in MQL4
Here is my attempt which is not working.
Do you guys see any obvious errors in my code? Or is there a more efficient way to retrieve the values?