OPEN-SOURCE SCRIPT
RBM - Range Body Measure

RBM – Range Body Measure
A structural strength indicator for intraday trend filtering and noise avoidance
This indicator measures the quality of price movement using the Range Body Measure (RBM), a composite metric derived from normalized range expansion and candle body efficiency. RBM helps identify whether price action is clean and directional, or weak and choppy.
🔍 What RBM Measures
RBM is built from two key structural components:
RBM combines these to produce a smooth structural score typically between 0 and 1.
🎯 Trend & Chop Zones
Two adjustable thresholds define structural zones:
🔴 Chop Zone
Highlighted only when RBM < Chop Threshold
Only the area below the threshold is shaded
Indicates low-quality, non-directional movement
Useful to filter out no-trade periods
🟢 Trend Zone
Highlighted only when RBM > Trend Threshold
Only the area above the threshold is shaded
Indicates strong structure suitable for directional trades
The middle region is intentionally left unshaded to keep the chart clean.
🛡️ Built-In Safety
Trend threshold automatically adjusted to be ≥ Chop threshold
Chop shading disabled if threshold ≤ 0
Trend shading disabled if threshold ≥ 1
This ensures stable, predictable behavior regardless of user settings.
📌 Intended Use Cases
Filtering low-quality market structure before entering trades
Validating directional setups for CE/PE options or index futures
Avoiding chop-heavy intraday periods
Enhancing systems based on VWAP, MACD histogram
Building multi-layer conviction models for trend trading
A structural strength indicator for intraday trend filtering and noise avoidance
This indicator measures the quality of price movement using the Range Body Measure (RBM), a composite metric derived from normalized range expansion and candle body efficiency. RBM helps identify whether price action is clean and directional, or weak and choppy.
🔍 What RBM Measures
RBM is built from two key structural components:
- Range Expansion
- EMA of (High − Low), normalized by ATR
- Captures how meaningfully price is moving relative to volatility
- Body Efficiency
- EMA of (Candle Body / Total Range)
- Measures how directional each candle truly is
RBM combines these to produce a smooth structural score typically between 0 and 1.
- Low RBM = weak structure, chop, noise
- High RBM = strong directional structure, trend-friendly movement
🎯 Trend & Chop Zones
Two adjustable thresholds define structural zones:
🔴 Chop Zone
Highlighted only when RBM < Chop Threshold
Only the area below the threshold is shaded
Indicates low-quality, non-directional movement
Useful to filter out no-trade periods
🟢 Trend Zone
Highlighted only when RBM > Trend Threshold
Only the area above the threshold is shaded
Indicates strong structure suitable for directional trades
The middle region is intentionally left unshaded to keep the chart clean.
🛡️ Built-In Safety
Trend threshold automatically adjusted to be ≥ Chop threshold
Chop shading disabled if threshold ≤ 0
Trend shading disabled if threshold ≥ 1
This ensures stable, predictable behavior regardless of user settings.
📌 Intended Use Cases
Filtering low-quality market structure before entering trades
Validating directional setups for CE/PE options or index futures
Avoiding chop-heavy intraday periods
Enhancing systems based on VWAP, MACD histogram
Building multi-layer conviction models for trend trading
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Gokul Ramachandran – software architect, programmer. Interested in trading and investment. Currently trading and researching strategies that can be employed in NSE.
Contact: gokul4trading@gmail.com]
LinkedIn: linkedin.com/in/gokulramachandran/
Contact: gokul4trading@gmail.com]
LinkedIn: linkedin.com/in/gokulramachandran/
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Gokul Ramachandran – software architect, programmer. Interested in trading and investment. Currently trading and researching strategies that can be employed in NSE.
Contact: gokul4trading@gmail.com]
LinkedIn: linkedin.com/in/gokulramachandran/
Contact: gokul4trading@gmail.com]
LinkedIn: linkedin.com/in/gokulramachandran/
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.