I'm not using "code". You mean trading plan? My trading is manual.
Initially during my "manual" backtest, I was using the daily ATR (closed bar) numbers. Upon live trading I was using that morning's, of that day's, ATR number. After learning that the daily ATR was updating live, I knew my data...