paul.seldon: The error message => click here http://gyazo.com/e878ebb7d1d95f61c36adeb412f431a4
- The image shows array out of range - same as the title of your post. Why show us that?
Don't need to store images else where - just insert it You have
limit=Bars-counted_bars;RSIBuffer[limit], RSIBuffer[limit+1], Upper[limit], .. Upper[limit+2] do not exist. You avoid out of range in the first loop with < limit, but not the second. Get in the habit of counting down.
for(i=0,y=0; i<limit; i++) ...
:
for(i=limit; i>=0; i--){
if (RSIBuffer[i] > overBought) { Upper[i] = RSIBuffer[i]; Upper[i+1] = RSIBuffer[i+1]; }
else { Upper[i] = EMPTY_VALUE;
if (Upper[i+2] == EMPTY_VALUE)
Upper[i+1] = EMPTY_VALUE; }You also look back 2 values.
limit=Bars-counted_bars; for(i=0,y=0; i<limit; i++) ... : if(counted_bars < 2) counted_bars = 2; // Look back Upper[i+2] for(i=Bars - 1 - counted_bars; i>=0; i--){ :
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 error message => click here http://gyazo.com/e878ebb7d1d95f61c36adeb412f431a4
Please help ~
Thanks in advance ~