This is an adaptive moving average
based on a signal noise ratio. It's inspiration is frm
Eugene Durenard's book Professional Automated Trading Theory and Practice. Shout out to CryptoStatistical
for his implemenation of Durenard's concepts that became the basis for this script.
Check out my breakout strategy based on this concept here