Help to understand how to fix the array out of range
Posted: Mon Nov 27, 2023 6:34 am
HI. I don't do it on purpose with these errors. I can't figure out how to fix the array out of range.
I'm trying to create my own set of candlestick patterns.
If I remove the - 2 on shift2, the code seems to work fine. That is, I don't notice any printing errors on the graph and it reflects what I would like to create and then display. There's a typo on the graph and I don't like it very much. I think I can fix it by working on it a little. And maybe it can be improved to make the patterns better. I think I can do it myself by adding some extra values for filtering.
When I add the - 2, it gives me the problem. I tried using the + sign in the two shifts instead of the - sign. It doesn't work as I would like. Single candles have no problems. The ones with more candles are marked in a way that I don't like very much.
Could someone kindly direct me to the solution to the problem or give me a hand?
I thank you infinitely
I'm trying to create my own set of candlestick patterns.
If I remove the - 2 on shift2, the code seems to work fine. That is, I don't notice any printing errors on the graph and it reflects what I would like to create and then display. There's a typo on the graph and I don't like it very much. I think I can fix it by working on it a little. And maybe it can be improved to make the patterns better. I think I can do it myself by adding some extra values for filtering.
When I add the - 2, it gives me the problem. I tried using the + sign in the two shifts instead of the - sign. It doesn't work as I would like. Single candles have no problems. The ones with more candles are marked in a way that I don't like very much.
Could someone kindly direct me to the solution to the problem or give me a hand?
I thank you infinitely