Skip to content
All library documents

SuperTrend Entries with ATR Averaging and Reversal Confirmation

Article TradingView scripts

Summary

This strategy uses a SuperTrend calculation based on average true range to classify the market as rising or falling. Users can choose among several averaging methods for the ATR, set its period and multiplier, and optionally filter unusually large true-range deviations. A reversal can require a chosen number of completed bars beyond the SuperTrend level before confirmation.

A change from downtrend to uptrend triggers a long entry, while a change from uptrend to downtrend triggers a short entry. The script also plots trend lines, marks signals, and exposes warning and reversal alerts. The calculation is imported from an external support-and-resistance library, so the excerpt does not show its internal mechanics. It specifies no separate stop, position sizing, transaction costs, or performance results, and the document offers no evidence that the parameters generalize across markets or timeframes.

Key ideas

  • The strategy derives directional state from an ATR-based SuperTrend calculation.
  • Users can select the ATR averaging method, period, multiplier, and outlier deviation filter.
  • A configurable count of closed bars can delay confirmation of trend reversals.
  • Trend flips trigger long or short entries and can generate alerts.
  • The calculation depends on an imported library, and 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.