Skip to content
All library documents

SSL Channel and Moving-Average Trend Strategy with ATR Exits

Article TradingView scripts

Summary

This strategy uses an SSL channel derived from moving averages of highs and lows, alongside a baseline calculated from closing prices. A smoothed SSL line crossing the baseline generates directional signals, with an optional higher-timeframe baseline filter. The moving-average type can be selected from several common choices, and signals can be inverted. Positions may close on a crossover, a fixed profit target, or an ATR-based stop, depending on the configured exit mode and position direction.

The document includes implementation details and default settings but no backtest results or other evidence for its claimed accuracy. The descriptive text mentions candle confirmations and breakout checks, but these do not appear in the supplied strategy code. The higher-timeframe filter also compares the chart close with the higher-timeframe baseline, a detail worth reviewing when adapting the script. Fixed targets are expressed in symbol ticks, while the stop distance scales with ATR. These are rule definitions, not evidence that the strategy generalizes across instruments or timeframes.

Key ideas

  • The SSL line switches according to whether price is above or below moving averages of highs and lows.
  • Crosses between a smoothed SSL line and the baseline produce directional signals.
  • An optional higher-timeframe baseline filter can restrict entries to the broader trend direction.
  • Exits combine selectable crossover or fixed-target rules with an ATR-based protective stop.
  • The provided code does not include the candle-confirmation claims in its accompanying description or show performance results.

Tags

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