Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.
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[20]. This number could be shown on the bottom right side of the chart.
The indicator can be easily modified to display the distance in numbers of standard deviations instead of true ranges. However the standard deviation oscillates faster, so it will get a bit nervous.
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.