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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。