OPEN-SOURCE SCRIPT
ATR-Multiple from 50SMA

ATR-Multiple from 50SMA is a momentum extension indicator that measures how far price has traveled from the 50-day simple moving average, expressed as a multiple of the Average True Range (ATR). This normalized approach provides a volatility-adjusted view of price extension, making it comparable across different stocks and market conditions. The indicator displays as a histogram with intuitive color-coded zones: values below zero indicate price is trading under the 50SMA, the 0-4 range (green) represents optimal entry territory, 4-7 (yellow) signals it's time to prepare for profit-taking, 7-10 (orange) marks the profit-taking threshold where positions should be actively managed, and above 10 (red) indicates extreme extension where risk is elevated and new entries are typically unwise. Choose between smooth gradient colors or distinct step-based coloring to match your visual preference. Reference lines at 0, 4, 7, and 10 provide clear visual boundaries for each zone. By default, calculations use daily timeframe data regardless of your chart timeframe, ensuring consistent readings—though this can be toggled off for timeframe-specific analysis. Built-in alert conditions notify you when price reaches profit-taking (7+) or extreme extension (10+) levels. Ideal for swing traders and position traders looking to time entries, manage risk, and avoid chasing overextended moves.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。