SuperTrend MultiTimeFrame with Alerts V.1
Feb 12, 2018

The SuperTrend MultiTimeFrame with Alerts V.1 indicator is a trend-following tool that visualizes the popular SuperTrend calculation across four distinct timeframes simultaneously to provide a comprehensive view of market sentiment. By plotting the current chart timeframe alongside 5-minute, 1-hour, and 1-day SuperTrend levels, traders can identify trend confluence and potential reversals from a single view.
Usage
The tool is designed for trend-following strategies where the user seeks to align trades with both short-term and long-term momentum.
- Trend Confluence: When multiple timeframes (e.g., the 5m, 1H, and Daily) all show the same color (green for bullish, red for bearish), it indicates a strong trend alignment.
- Support and Resistance: The various SuperTrend lines act as dynamic levels. A price bounce off a higher-timeframe line (like the Daily) while the lower timeframe is bullish can signal a high-probability entry point.
- Alerts: The script includes comprehensive alert conditions for each timeframe. You can set specific alerts for "Long" (trend flips bullish) or "Short" (trend flips bearish) for the current timeframe, 5m, 1H, or Daily charts.
Details
This script utilizes the standard ta.supertrend function with a user-defined factor and period. It leverages the request.security function to fetch data from higher intervals.
- Visual Representation: The current timeframe SuperTrend is displayed as a standard line, while the 5m, 60m, and Daily lines are plotted simultaneously. The line colors transition between green (bullish) and red (bearish) based on whether the price is above or below the calculated trailing stop level.
- Multi-Timeframe Integration: By hardcoding the 5, 60, and Daily intervals, the script ensures consistent reference points regardless of which timeframe you are currently viewing.
Settings
- Factor: Multiplier used to calculate the distance of the SuperTrend line from the price based on volatility. Higher values result in a smoother line with fewer signals.
- Period: The lookback period for the Average True Range (ATR) calculation used within the SuperTrend formula.
FAQ
How do I use the alerts effectively?
You can configure alerts for specific timeframes to be notified when a trend change occurs. For example, you might set an alert for the 1H timeframe to signal a potential trend shift while trading on the 5m chart.
Why do some lines look "steppy" on my chart?
Higher timeframe data (like the Daily) plotted on a lower timeframe chart (like the 5m) will appear as flat steps because the value only updates once per day, remaining constant for all 5-minute bars within that day.
How can I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.