PROTECTED SOURCE SCRIPT
Updated Multi-Timeframe SMA + Alerts

This indicator displays the Simple Moving Average (SMA) across multiple timeframes simultaneously on your chart. It helps traders quickly visualize trend direction across different intervals without switching charts.
Features:
Use Cases:
How to Use:
Tips:
Features:
- Multi-Timeframe SMA: Shows SMA for multiple timeframes (1m, 3m, 5m, 15m, 30m by default; visibility customizable).
- Customizable SMA Length: Choose any SMA length to suit your trading strategy.
- Colored SMAs: Each timeframe is represented with a distinct color for easy differentiation.
- Price vs SMA Table: Displays SMA values and whether the current price is Above, Below, or At the SMA for each timeframe.
- Chart Labels: Marks the last SMA values on the chart for quick reference.
- Alerts: Set alerts when price crosses above or below any timeframe’s SMA, with clear messages indicating the timeframe and price.
- Customizable Inputs: Select which SMAs to display and define the SMA length.
Use Cases:
- Identify short-term vs. longer-term trend alignment.
- Spot potential entry or exit points when price crosses the SMA on multiple timeframes.
- Keep track of SMA relationships without constantly switching timeframes.
How to Use:
- Add the indicator to any chart.
- Choose which timeframes’ SMAs to display.
- Set the SMA length according to your strategy.
- Optionally, set alerts for crossovers or crossunders.
- Use the table and labels to monitor SMA levels at a glance.
Tips:
- Combine with other indicators for confirmation of trend direction.
- Use alerts to avoid constantly watching the chart.
Release Notes
Fixing the alert message. Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.