Skip to content
All library documents

Pivot SuperTrend: Swing Pivots and ATR-Based Trend Reversals

Article MQL5 code base

Summary

This indicator uses confirmed swing highs and lows to form a weighted pivot center, then places an adaptive trail around it using Average True Range. The trail indicates bullish or bearish direction; a change in direction can produce a buy or sell marker and alerts. Optional features include pivot markers, recent support and resistance levels, live or closed-candle alerts, and signal buffers for automated systems.

The guide recommends confirming signals after the candle closes, checking that price remains on the appropriate side of the trail, and considering higher-timeframe direction. It suggests avoiding low-volatility or sideways conditions and using stop-loss and risk controls. The indicator is presented for multiple markets and timeframes, with M15 and M30 suggested for intraday use, H1 and H4 for swing trading, and D1 for longer-term analysis; lower timeframes may produce more false reversals. These are usage recommendations, not supported by reported backtests. The guide explicitly says the indicator is not a complete trading system and calls for confirmation from market structure, support and resistance, or another method.

Key ideas

  • Confirmed swing highs and lows define a weighted center for an ATR-adjusted trend trail.
  • Trend reversals can produce buy or sell tags, alerts, and accessible direction buffers.
  • Closed-candle confirmation and higher-timeframe context may help filter premature signals.
  • Sideways conditions and lower timeframes can generate false reversals.
  • The indicator requires additional confirmation and risk controls; no backtest evidence is presented.

Tags

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