Forum

Saving price zones

I'm trying to save supply&demand zones, now i'm not sure how to do it. I was considering 2 options (but if there's better ways let me know). OnTick(): Loop through the past x amount of bars, and draw in all the zones, fill it in a 2d array or something, clear again at every tick . OnTick(): Just