Is this a built-in limitation of MQL4?

 

Hi, Coders,

Happy trading!

I am trying to build a custom indicator using several arrays. The way I used them is like this: Array B [ ] is the sum of certain number of Array A [ ]. Array C [ ] is the sum of certain number of B [ ], and D [ ] is the sum of C [ ] and so on to many levels. When I tested this indicator, it only returns the Array value to the third level C [ ]. It ignores anything above. I have the indicator in the a separate window which displays values of all the buffers. I output the indicator value onto the chart with a comment function, it showed only the third level of array value, but it really needs to use the D [ ] and above value for an EA. Does anyone know if this is limitation of MQL4 and is there a way to get around it? Thank you in advance.

10double

 

Mq4 supports 8 buffers. Beyond that you have to manage your own arrays.

There are no mind readers here - post your code (using SRC)

 

I have figured it out myself. When I used iCustom(), The buffer index number were set at 3, so it would not return higher values. Thank you.

Reason: