OPEN-SOURCE SCRIPT
% 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.
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.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。