How to I code a DAILY ATR to use on intraday charts. I have tried thw following but it does not give me a single value for the day as I was expecting it would.
I am trying to put this into a Trading System, and cannot get it to work. The code returns a value for the current day, but I need a value for every day going back, and can’t see what to do.