Skip to content
All library documents

Inside Bar Entries with Trend Filters and Configurable Stops

Article TradingView scripts

Summary

This strategy identifies one to four nested inside bars, where each bar’s range remains within the preceding bar’s range. It takes long or short setups according to the final bar’s direction, with optional filters for a moving-average trend and a run of bars in the same direction. It also includes switches for trading one direction, reversing signals, and allowing a new signal to reverse an open position.

Risk controls can use the prior bar, recent swing highs or lows, or an average true range multiple to set stops; take-profit levels are based on a configurable reward-to-risk ratio. A trailing-stop option adjusts the exit level as price moves favorably. The accompanying explanation says inside bars may precede continuation or reversal and stresses that trend and nearby support or resistance affect interpretation. The script includes backtest settings, but this document supplies no strategy report or performance results. Its pattern rules and stop calculations therefore describe a testable framework, not evidence that the approach is profitable; execution assumptions and market conditions can also affect results.

Key ideas

  • An inside-bar setup requires a bar’s high and low to sit within the selected preceding ranges.
  • The final bar’s direction determines whether a pattern signals a long or short entry.
  • Optional filters require alignment with a moving average or a sequence of directional bars.
  • Stops can be based on the prior bar, swing levels, or an ATR multiple, with optional trailing behavior.
  • The document gives no performance results, so the setup remains an unvalidated strategy framework.

Tags

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