@tahukentucky, how exactly do you want to inject moving average? you can plot(sma(close, 18))... To make it MTF just don't use high, close, open and low. Instead use security(low, TimeFrame)... I don't remember correct syntax, but you can find it in pine script reference
thank you for your script. Is it possible to customize your script so I can get alert? I would need alert when SAR crosses price AND crosses SMA line. I'm not good at programing, but it should be easy task.