Skip to content
All library documents

Supertrend Reversals with Multi-Timeframe Moving Average Bias

Article TradingView scripts

Summary

This strategy uses an ATR-based Supertrend to define direction and generate entries when its state changes. The band is calculated from a chosen price source and an ATR multiple; the ATR can use either the standard method or a simple moving average of true range. A reversal from bearish to bullish opens a long position, while a bullish-to-bearish reversal opens a short position. Entries can be limited to a user-selected date window.

A separate bias table compares fast and slow moving averages across intraday, daily, weekly, and monthly timeframes. The user can select EMA or SMA for these comparisons, and the script requests higher-timeframe values without lookahead. Chart fills, bar colors, and labels visualize trend states and reversals. The document provides code and configurable parameters, but no performance report, validation, or explicit exit and risk-management rules. The table is a contextual filter or display; the code shown does not require agreement across timeframes before taking a Supertrend signal.

Key ideas

  • The entry signals occur when the ATR-based Supertrend changes direction.
  • The strategy takes both long and short positions within a configurable date window.
  • A fast-versus-slow moving average comparison summarizes bias across eight timeframes.
  • The user can choose an EMA or SMA for the multi-timeframe bias calculation.
  • The script offers visual trend aids but provides no reported performance evidence or explicit risk controls.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.