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
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
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/
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
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/
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。