Is this a built-in limitation of MQL4?

Rui
13
Rui  

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

William Roeder
23512
William Roeder  

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

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

Rui
13
Rui  

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.