1. We will find out which day * is today and which is yesterday.
2. We will find out the price of yesterday's closing.
3. We calculate the average ATR for 5 (ATR_lim) days*.
4. Add and subtract from yesterday's* close.
These levels are stable all day*. I put asterisks because we can choose a different period.
I hope I understood you correctly.