INVITE-ONLY SCRIPT
已更新 Body Direction Ratio (Fixed Range)

Overview
The Body Direction Ratio (Fixed Range) indicator measures directional participation inside a user-defined time range by analyzing candle bodies only.
Instead of counting candles, the indicator sums the actual body size of bullish and bearish candles within the selected range and displays their percentage relationship. This provides a clear view of who was in control during that period: buyers or sellers.
What the indicator does
Within the selected time range, the indicator:
There is no “Balanced” state by design. The result is always either Bullish or Bearish, ensuring a clear directional context.
Bias Logic
The box color reflects the detected bias instantly.
Fixed Range Control
This ensures precise and reproducible analysis.
How to use it (recommended workflow)
This indicator is not a signal tool. It is a context and participation tool.
A powerful use case is applying the indicator on lower timeframes at higher-timeframe points of interest.
Examples of points of interest:
Workflow example:
This helps answer questions such as:
Input Parameters
Time Range
Visual
Important notes
Key benefits
The Body Direction Ratio (Fixed Range) indicator measures directional participation inside a user-defined time range by analyzing candle bodies only.
Instead of counting candles, the indicator sums the actual body size of bullish and bearish candles within the selected range and displays their percentage relationship. This provides a clear view of who was in control during that period: buyers or sellers.
What the indicator does
Within the selected time range, the indicator:
- Calculates bullish body size (close > open)
- Calculates bearish body size (open > close)
- Sums both values
- Computes the percentage ratio between bullish and bearish bodies
- Draws a range box covering the high/low of the selected period
- Assigns a Bullish or Bearish bias
- Colors the box automatically based on that bias
There is no “Balanced” state by design. The result is always either Bullish or Bearish, ensuring a clear directional context.
Bias Logic
- Bullish Bias: Bullish body sum ≥ Bearish body sum
- Bearish Bias: Bearish body sum > Bullish body sum
The box color reflects the detected bias instantly.
Fixed Range Control
- Fully manual start and end time
- Optional Auto End = Current Bar toggle
- End time is always guaranteed to come after start time
- No automatic extending unless explicitly enabled
This ensures precise and reproducible analysis.
How to use it (recommended workflow)
This indicator is not a signal tool. It is a context and participation tool.
A powerful use case is applying the indicator on lower timeframes at higher-timeframe points of interest.
Examples of points of interest:
- Higher-timeframe support and resistance levels
- Supply and demand zones
- Daily or weekly key levels
- Session ranges and reaction areas
Workflow example:
- Identify a higher-timeframe level (e.g. daily resistance)
- Switch to a lower timeframe (e.g. 5m or 15m)
- Select a fixed range around the reaction area
- Observe whether buyers or sellers dominated inside that range
- Use the result as contextual information, not as an entry trigger
This helps answer questions such as:
- Was the reaction buyer-driven or seller-driven?
- Is participation expanding or fading?
- Does price acceptance or rejection make structural sense?
Input Parameters
Time Range
- Start Time
Defines the beginning of the fixed analysis range. Only candles whose time is equal to or after this timestamp are included in the calculation. - End Time
Defines the end of the fixed analysis range. Only candles whose time is equal to or before this timestamp are included in the calculation. - Auto End = Current Bar
When enabled, the end time is automatically set to the current bar. This allows the range to extend dynamically while keeping the start time fixed. When disabled, the range remains strictly fixed between Start Time and End Time.
Visual
- Bullish Box Color
Sets the box color when bullish body participation is greater than or equal to bearish body participation. - Bearish Box Color
Sets the box color when bearish body participation is greater than bullish body participation. - Text Color
Defines the text color used for the information label displayed on the chart.
Important notes
- This indicator does not predict price
- It does not generate buy or sell signals
- It should always be used together with structure, levels, and higher-timeframe context
Key benefits
- Measures real participation instead of candle count
- Works on any timeframe
- Especially effective on lower timeframes around HTF levels
- Clear directional bias without ambiguity
- Clean, non-lagging, fixed-range logic
版本注释
Offset for Label added版本注释
Combine direction bias with RSI版本注释
Fix RSI calculation仅限邀请脚本
只有作者授权的用户才能访问此脚本。您需要申请并获得使用许可。通常情况下,付款后即可获得许可。更多详情,请按照下方作者的说明操作,或直接联系trading-guide。
TradingView不建议您付费购买或使用任何脚本,除非您完全信任其作者并了解其工作原理。您也可以在我们的社区脚本找到免费的开源替代方案。
作者的说明
You can get the indicator from our webpage: https://indivisionx.com
Access our indicators from: indivisionx.com
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
仅限邀请脚本
只有作者授权的用户才能访问此脚本。您需要申请并获得使用许可。通常情况下,付款后即可获得许可。更多详情,请按照下方作者的说明操作,或直接联系trading-guide。
TradingView不建议您付费购买或使用任何脚本,除非您完全信任其作者并了解其工作原理。您也可以在我们的社区脚本找到免费的开源替代方案。
作者的说明
You can get the indicator from our webpage: https://indivisionx.com
Access our indicators from: indivisionx.com
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。