Indicators: SuperSR6
"Bar" variable declared at line 113 is used undifined resulting to an invalid array access at line 125 (and line 126 also).
A basic "0" initialisation look to be solving this issue
Good afternoon!
When installing the indicator on a chart, the terminal generates an error:"array out of range in 'supersr6.mq5' (125,16)".
If I understand correctly, the reason is that in lines 125 and 126 the BuyBuffer[bar] and SellBuffer[bar] buffers are accessed outside the FOR loop, respectively the variable "bar" does not exist at this moment. We need to replace the buffer indices in these lines with BuyBuffer[0] and SellBuffer[0].
It is strange that the compiler does not catch it.
- www.mql5.com
SuperSR6:
The indicator for drawing possible Support/Resistance lines on fractals
Fig.1 The SuperSR6 indicator
Author: Nikolay Kositsin