Hello, I coded this indicator based on AFL code from here: https://stockbangladesh.com/blog/buying-and-selling-pressure-indicator/
It displays historical bars correctly but not the most recent bars, please help me fix it, thanks.
Regards.
PS. Detailed comments in the code would help.