Skip to content
All library documents

Rob Hoffman IRB Breakout Strategy with Trend Filters and Trailing Exits

Article TradingView scripts

Summary

This strategy turns an internal range bar pattern into a pending breakout entry. It identifies bars whose open and close lie within a specified portion of the candle’s range, then requires agreement from several filters: a directional EMA stack, EMA close confirmation, normalized EMA slope, a higher-timeframe EMA trend, ADX strength, and a limit on candle size relative to ATR. A qualifying bar places a stop entry just beyond its high or low, and repeated same-direction signals can replace a pending order before its trigger window expires.

Position size is calculated from account equity and stop distance, subject to configured minimum and maximum lots. After entry, the script tracks the position and manages stops using an EMA-based trail, with a time stop also represented in the strategy logic. The document includes implementation details and parameter settings, but not evaluated performance results. Its pip assumptions, lot sizing, and alert payloads are instrument-specific, so they require careful adaptation before use on other markets.

Key ideas

  • An internal range bar pattern defines the setup for a stop order beyond the signal bar.
  • The entry requires alignment across trend, higher-timeframe direction, ADX, ATR, and EMA close filters.
  • Pending orders can be replaced by fresh same-direction signals or canceled after a trigger window.
  • Position size is linked to stop distance and bounded by configured lot limits.
  • The code gives no backtest evidence, and its pip and sizing assumptions may not transfer across instruments.

Tags

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