Inside Bars (MTF Framework)
Category: market_structure, volatility
An MTF indicator that identifies Inside Bar patterns where the current candle's range (High to Low) is contained within the previous candle's range. It supports multi-timeframe detection using lower-level M5 data for accuracy.
Formula
High[i] \le High[i-1] \text{ AND } Low[i] \ge Low[i-1] \text{ (Standard Definition)} \text{ Note: This code uses: } High[i] \ge High[i-1] \text{ AND } Low[i] \le Low[i-1] \text{ relative to the candle containing the IB.}
Inputs
- Timeframe (default: H1)
- NumberOfInsideBars (default: 3)
- Signal.onInsideBar (default: false)
See signal primitives and every published strategy that uses Inside Bars (MTF Framework) on WOBR StrategyVerse.