Hi Pacois, there is still the problem of real time.
I sent you 2 attachments to show you:
the first attachment "body" shows all the arrows that the code puts in real time and I put 2 yellow arrows that indicate that those 2 candles should not have the arrow because the body with a candle closure is smaller than that required by the code.
In the second attachment "body2" I restarted the code and shows the arrows on the right candles.
In practice, the code must analyze the candle after the closure is not in real time.
hello Fabio