Skip to content
All library documents

STP Flip ATR Trend Strategy with Whipsaw Filters and Trailing Exits

Article Strategy library · Author: uprisingchristian

Summary

The document introduces a Pine Script strategy called STP Flip, framed as a modified always-in approach with anti-whipsaw features. The visible settings describe an ATR band centered on an exponential moving average: ATR length controls responsiveness, while an ATR multiplier sets the band width. A longer trail EMA is intended to smooth the trail and reduce reversals. An optional adaptive multiplier adjusts band width using a volatility percentile, narrowing it in quieter conditions and widening it in more volatile ones.

The excerpt also specifies no pyramiding, order processing on bar close, and a one-bar hold that excludes the entry bar from stop or target hit checks. It names additional areas such as signal filters, regime classification, risk controls, profit trailing, and smart sizing, but the source ends partway through the inputs. As a result, their exact rules and the strategy’s entry and exit logic are not available here. No performance results or backtest evidence are included, so the excerpt supports understanding the intended design, not evaluating its effectiveness.

Key ideas

  • The visible strategy builds an ATR volatility band around an EMA trail center.
  • A wider ATR multiplier is intended to smooth signals, while a narrower one is more reactive.
  • An optional volatility percentile adjusts band width to changing market conditions.
  • The excerpt describes an entry-bar guard and several additional risk and filtering modules whose rules are not shown.

Tags

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