sorry, iBandsOnArray is described not right. indicator has parameters:
array[] - Array with data.
total - Items number to counting.
period - Number of periods for calculation.
deviation - Deviation.
bands_shift - Bands shift.
mode - Series array identifier. It can be any one of the Series array identifier enumeration values.
shift - Shift relative to the current bar (number of periods back), where the data is to be taken from.
thanx for found bug
array[] - Array with data.
total - Items number to counting.
period - Number of periods for calculation.
deviation - Deviation.
bands_shift - Bands shift.
mode - Series array identifier. It can be any one of the Series array identifier enumeration values.
shift - Shift relative to the current bar (number of periods back), where the data is to be taken from.
thanx for found bug
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
The editor desciption has an example that is wrong and
definition is supposed to be
double iBandsOnArray( double array[], int total, int deviation, int bands_shift, int mode, int shift)
and the example given is
if(iBands(ExtBuffer,total,2,0,MODE_LOWER,0)>Low[0]) return(0);
but even assuming that it was a typing mistake and you meant to write iBandsOnArray
The code will not compile, only if I place an extra variable into iBandsOnArray will it allow me to compile.
otherwise I get the error incorrect variable count.
Can someone shed some light on this
the line of code I was using is
ExtMapBuffer2[i]=iBandsOnArray(CCIndex,tPr,2,0,MODE_UPPER,0);
which doesn't work.
Thanks