Firstly I'd like to state that this script's ATR buy/sell source is from the public script library here:
Additionally with the buy/sell signals from the original script, two more buy/sell conditions were added to give more entries/scaling in or out options. On top of that, two SMA lines were added, a 1 day moving average and a 5 day moving average.
This script is more so designed for scalping/scaling in and out of positions already made.
The SMAs add a level of confidence to the entry order, buy/sell triggers are not based on these SMAs.
For the confirmation on the entry, ideally you want a bullish cross on the SMAs, as well as the color of the SMA to correlate to the buy/sell color.