Multidimensional buffer array in MQL4

 

Hi,

Is there a way to create multidimensional array of buffers in MQL4. This topic has been discussed in various threads, but I couldn't find a direct way to define an array like:

double buffers[3][];

SetIndexBuffer(0,buffers[0]);


The closest I could find was using OOPS concepts https://www.mql5.com/en/blogs/post/680572. Is there a direct way to accomplish this with new enhancements in Mql4?

Thanks in advance for the help.

MQL's OOP notes: Arrayed indicator buffers based on operators overloading
MQL's OOP notes: Arrayed indicator buffers based on operators overloading
  • 2016.09.17
  • www.mql5.com
From very first moment as I started learning MetaTrader many years ago I was wondering why there are no multidimentional buffers in indicators. Indeed, when you code an indicator with multiple buffers you need to declare them one by one: This would not only spare a couple of lines, but allow streamline further calculations tremendously...
Reason: