I assume that you look for the distance of price from the SMA as a percentage of price.
Now this will normalize the distance over all the instruments that you trade. If you also want to normalize over various timeframes and charts, you would display the distance as a percentage of the average true range over a longer period.
The indicator below uses a fast SMA - which is smoothing price, but you can set it to 1, if you do not want that smoothing - and a slow SMA, which is the one you mentioned. It then calculates the distance and normalizes it. The values displayed are not percentages, but multiples of the ATR() over the initialization period, which you can set.
I have then added a signal line and Bollinger Bands to the indicator. If you don't like these, just set them to transparent.
The following 7 users say Thank You to Fat Tails for this post:
It is also interesting to know the distance in terms of standard deviation. For example, price is at 2.58 standard deviation from the SMA. This number could be shown on the bottom right side of the chart.
If we play the game of normalizing indicators, the MACD is a great candidate. Attached is a version, which normalizes the MACD. You can use the normalized NormMACD as a trendfilter. If the NormMACD is above 1, this is an indication of a strong bull trend, if it below - 1 it is an indication of a strong bear trend.
The normalized MACD below comes as MACDBBLines. The graphical display should be near-identical with the MACDBBLines, just the scale is now normalized for all instruments and timeframes.
The following 6 users say Thank You to Fat Tails for this post: