More than 8 indicator buffers

 
Hello,

I am trying write an indicator that requires more than 8 buffers for counting. The indicator needs only 2 buffers for display, but more than 6 additional buffers are required for calculation. How do I allocate additional buffers for counting/calculation?

--soren
 
double ind_buffer9[];
double ind_buffer10[];

SetIndexBuffer(0,ind_buffer11);

for(int i=0; i<limit; i++)
ind_buffer9[i]=iMACD(NULL,0,FastEMA,SlowEMA,SignalSMA,PRICE_WEIGHTED,MODE_MAIN,i);
for(i=0; i<limit; i++)
ind_buffer10[i]=iOsMA(NULL,0,FastEMA,SlowEMA,SignalSMA,PRICE_WEIGHTED,i);
for(i=0; i<limit; i++)
ind_buffer11[i]=ind_buffer9[i]-ind_buffer10[i]
 
You can define additional buffers on the global scope and resize they with Bars value. your previously counted data leaves after resizing
 
thanks
Reason: