You are trying to access array with a negative index (out of range). Change this line :
if(pos<1) { pos=InpBigPeriod; ExtHighBuffer[0] = 0; ExtLowBuffer[0] = 0; ExtDeltaBigBuffer[0] = 0; }
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
Hello all,
at the moment I'm traying to create an indicator. The indicator should plot every bar the maximum and the minimum of the last 50 bars to the chart-window. Also it should calculate the difference of maximum and minimum.
I tried it like this:
If I trie to debug it I get the message that the array is out of range.
Does anybody know what the problem is?