update - this script sources data for alerts. You can use it to source data from a different indicator and modify it.
Note that you must be a paid account on tradingview for u to use this script.
Added averaging of data. The data source can be averaged to provide smoother flow on alerts