I am trying to realize an indicator that draws a line not very long when in the current bar the minimum of the previous bar is broken or when the maximum of the previous one is broken. I managed to do this but the indicator only prints the last event, but I would like to see the previous ones too. How could I implement this feature? I currently work in onEachTick.
Thank you!

Comment