I had this idea to make a custom Moving Average that adapts to the market. I chose to use the Average True Range. As the market makes bigger/smaller moves, this custom Moving Average applies the ATR as the length of the EMA. This gives more distance to the Moving Average as the volatility picks up or reduces.
Just set the length you want the ATR to look back (default is 100) and the multiplier (default is 2) to work with the instrument being traded.