Hi, this is because you are referring to future candlestick with “n-1” which is not possible in PRT, because it doesn’t make look in the past, the whole history is only loaded once.
I’m not sure that it will draw correctly what you are trying to do here, but you can replace the “n-1” to “n+1” instead and see what happen.
Yes this is the code you submit to be fixed. I don’t know where it comes from, maybe from another platform I guess? There is already another darvas boxes indicator in the library:
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.