Skip to content
All library documents

Range-Flip Trading with Higher-Timeframe Structure and Filters

Article TradingView scripts

Summary

This strategy trades directional flips in a price range while optionally requiring alignment with higher-timeframe market structure. It tracks a range bounded by recent highs and lows, updates direction when price closes beyond a boundary, and can use break-of-structure or higher-high/higher-low sequences to set directional bias. Entry conditions can also depend on a range midline rule, trading session, daily or weekly regime, volatility, and VWAP location.

Stops can reference swing pivots, the flip candle range, or the previous range, with configurable buffers and minimum or maximum distances. Long and short reward-to-risk targets are set separately, and optional breakeven movement, depth-based sizing, and volatility or volume scaling affect trade management. The script includes backtest controls and diagnostic counters, but the supplied material gives no actual performance results. Outcomes depend on instrument, timeframe, execution assumptions, session settings, and selected filters; users should verify how the strategy handles intrabar fills and higher-timeframe data before interpreting backtests.

Key ideas

  • Range boundaries reset when price closes beyond the active range, producing directional flips.
  • Higher-timeframe break-of-structure or swing sequences can gate trades by market bias.
  • Midline, session, volatility, VWAP, and regime rules provide optional entry filters.
  • Stop references and long versus short reward-to-risk targets are independently configurable.
  • The source includes backtest diagnostics but reports no measured strategy performance.

Tags

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