Search found 6 matches

Re: Help to understand how to fix the array out of range

HI. I have made some changes since the last version. I created a class for the candlestick pattern. I tried several times to create the function for calculating the body length starting from the ta.ema function: pine_ema(src, length) => alpha = 2 / (length + 1) sum = 0.0 sum := na(sum[1]) ? src : al...

Re: Help to understand how to fix the array out of range

HI. I managed to fix the array out of range. Now I don't know if this is the best method. It seems to work and I don't notice any strange placements. I have a couple of errors that I can't see. both the inverted hammer and the shooting star are not displayed. I've checked the code several times and ...

Re: Help to understand how to fix the array out of range

HI. I managed to remove array out of range. in a slightly different way than I had tried. The problem I noticed remains. Patterns that require 2 or more candles don't convince me. it manages to mark candles perfectly, but there are candles that seem to me to be signaled earlier than the pattern. I t...

Help to understand how to fix the array out of range

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 w...

Return to the advanced search