ST MultiTimeframe
Jan 11, 2019

The ST MultiTimeframe indicator provides a dual-layer trend analysis tool that combines standard SuperTrend calculations with a higher time frame perspective to help traders identify primary market direction and entry points.
Usage
The indicator can be used to identify trend alignment across two different time horizons. By plotting both the local SuperTrend and a higher time frame (HTF) SuperTrend, users can filter signals to ensure they are trading in the direction of the dominant market move.
- Trend Filtering: Use the "Main SuperTrend" (thicker line) to establish the primary bias. Traders often look for long opportunities only when price is above the HTF line and short opportunities when price is below it.
- Entry Signals: The "SuperTrend" (thinner line) provides more immediate trend flips. An ideal entry might occur when the local SuperTrend aligns with the direction of the Main SuperTrend.
- Alerts: The script includes built-in alert conditions for trend flips and specific directional alignment (e.g., when price is above the daily SuperTrend while the local trend turns bullish).
Details
The script utilizes the request.security function to fetch data from a user-defined higher time frame. It calculates the SuperTrend using the Average True Range (ATR) multiplied by a specific factor. To prevent repainting issues and ensure reliability for historical analysis, the HTF data is requested using barmerge.lookahead_off. The calculation logic determines the trend based on whether the price closes above or below the trailing stop levels (trend lines).
Settings
- Main SuperTrend Time Frame: Sets the higher time frame used for the secondary SuperTrend calculation (e.g., Daily, 4-hour).
- Factor: The multiplier used to determine the distance of the SuperTrend line from the price.
- ATR Period: The lookback period for the Average True Range used in the volatility calculation.
FAQ
How do I access ST MultiTimeframe?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Does this indicator repaint?
No, the indicator is designed with barmerge.lookahead_off for higher time frame requests, ensuring that calculations only use data available at the time of the bar close.
Can I change the sensitivity of the signals?
Yes, you can adjust the "Factor" and "ATR Period" in the settings. A higher factor will result in a smoother, slower-moving line, while a lower factor will make the indicator more sensitive to price fluctuations.
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.