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]
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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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