very weird error:"array out of range" on mql5 - page 3

 
Carl Schreiber #:

It is absolutely NOT a weird problem, it's a quite simple problem that you can easily correct yourself.

Debug ( https://www.mql5.com/en/articles/654 ) your code and check the size  of the array. It is set to Bars(_Symbol,PERIOD_CURRENT); what if this is less than 1000?

There is no error checking and some numbers are hard coded  - bad style causing such traps wasting a lot of your (and our) time.

I know what you told.But the size of array is not less than 1000. it is 1518.

As you can see on the  post that I replied to Vladimir Karputov . So I appreciate if you test my indicator (H-RSI-ver1.mq5) and tell me why I have error on line 133?

but no error on line 130.

Reason: