Skip to content
All library documents

Trendline Breakout Trading with Momentum Filters and Managed Exits

Article TradingView scripts

Summary

This strategy seeks breakouts from automatically drawn support and resistance lines. It constructs descending resistance from two successively lower pivot highs and rising support from two successively higher pivot lows. Pivots are confirmed after bars on both sides have formed; a minimum pivot spacing, maximum line age, and ATR-sized break buffer help qualify candidate lines. A line can trigger only once, including when filters reject the initial break.

A close beyond resistance can signal a long, while a close below support can signal a short. The default momentum check requires a smoothed Awesome Oscillator measure to be rising for longs or falling for shorts; optional filters compare price with an EMA, require an ADX threshold, or compare volume with its recent average. Risk controls include ATR or recent-swing stops, reward-multiple targets, partial profit-taking, break-even moves, trailing stops, and a maximum holding period. The script describes rules and configurable backtest assumptions, but supplies no performance evidence. Pivot confirmation delays signals, and results may vary with instrument, timeframe, costs, and settings.

Key ideas

  • Descending pivot highs define resistance, while rising pivot lows define support.
  • Breakouts require a close beyond a valid, recent trendline by an ATR-based buffer.
  • Momentum confirmation is enabled by default, while EMA, ADX, and volume filters are optional.
  • The strategy can reverse on opposite signals and manage risk with swing or ATR stops, targets, and trailing rules.
  • The script provides no evidence that its signals are profitable across markets or settings.

Tags

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