OPEN-SOURCE SCRIPT

ATR-Multiple from 50SMA

35
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.

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.