RowInvesting

% FROM 200-DAY MOVING AVERAGE

One of the stock market's paradoxes is that what seems too high goes higher and what seems too low goes lower. But there's a limit. Nothing goes up forever — even the best growth stocks.

Every experienced stock investor knows that at some point, what seems too high in price is in fact too high. So how do you objectively measure how high is too high?

One way is to calculate the distance from the 200-day moving average to the stock's current price on a daily chart. If the price is more than 70% to 100% above that level, maybe it's time to think about selling.

IBD founder and longtime former chair William O'Neil lists that as a sell signal in his book, "How to Make Money in Stocks," but admits he rarely uses it.

Use this script in your risk evaluation when starting a new position or thinking about selling a current position.

The percent from the 200-day moving average will be calculated and displayed in the top right of your chart. The flag symbols (⚑) will appear when a stock is >70% from its 200-day moving average line.


Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?