OPEN-SOURCE SCRIPT
Body Length Bias

================================================================
BODY LENGTH BIAS — INDICATOR DESCRIPTION
================================================================
🇬🇧 ENGLISH
----------------------------------------------------------------
Body Length Bias is a directional pressure indicator that measures
the accumulated percentage movement of bullish and bearish candles
over a defined lookback period, revealing which side — buyers or
sellers — has exerted more real force on price.
WHAT IT CALCULATES
------------------
For each candle in the last X bars, the indicator calculates the
body movement as a percentage relative to the open price:
|close - open| / open * 100
It accumulates that percentage separately for bullish candles
(close >= open) and bearish candles (close < open). The side with
the higher total percentage is considered the dominant force.
WHAT IT SHOWS
-------------
A fixed label in the bottom-right corner of the chart displays:
- Current bias: BULLISH or BEARISH
- Accumulated percentage for each side
- Number of candles being analyzed
Background and text colors are fully customizable.
HOW TO USE IT
-------------
Trend filter:
Only look for long setups when bullish % > bearish %, and short
setups when bearish % > bullish %. Avoid trading against the
dominant side.
Range detection:
When both values are nearly equal (e.g. 50/50), the market is in
consolidation. No directional bias is present — wait for a breakout.
Exhaustion reading:
If one side has dominated for many candles but the gap is closing,
directional pressure is fading — a reversal may be forming.
Multi-timeframe confluence:
Apply the indicator on H4, H1, and 15m simultaneously. When all
three align in the same direction, confluence is at its highest.
WHAT IT DOES NOT DO
-------------------
This indicator does not generate entry signals. It is a contextual
bias tool designed to be used alongside structural analysis, key
levels, and volume. It works best in trending conditions and loses
reliability in tight sideways ranges.
================================================================
🇪🇸 ESPAÑOL
----------------------------------------------------------------
Body Length Bias es un indicador de presión direccional que mide
el movimiento porcentual acumulado de las velas alcistas y bajistas
durante un período definido, revelando qué lado — compradores o
vendedores — ha ejercido mayor fuerza real sobre el precio.
QUÉ CALCULA
-----------
Por cada vela de las últimas X barras, el indicador calcula el
movimiento del cuerpo como porcentaje respecto al precio de apertura:
|close - open| / open * 100
Ese porcentaje se acumula por separado para las velas alcistas
(close >= open) y las bajistas (close < open). El lado con mayor
porcentaje total es considerado la fuerza dominante.
QUÉ MUESTRA
-----------
Un cartel fijo en la esquina inferior derecha del gráfico muestra:
- Sesgo actual: BULLISH o BEARISH
- Porcentaje acumulado de cada lado
- Número de velas analizadas
El color de fondo y el color del texto son completamente configurables.
CÓMO USARLO
-----------
Filtro de dirección:
Busca solo largos cuando alcista % > bajista %, y solo cortos cuando
bajista % > alcista %. Evita operar contra el lado dominante.
Detección de rango:
Cuando ambos valores están casi igualados (ej. 50/50), el mercado
está en consolidación. No hay sesgo direccional — espera una ruptura.
Lectura de agotamiento:
Si un lado ha dominado durante muchas velas pero la diferencia se
está cerrando, la presión direccional se está agotando — puede estar
formándose un giro.
Confluencia multi-timeframe:
Aplica el indicador en H4, H1 y 15m simultáneamente. Cuando los
tres apuntan en la misma dirección, la confluencia es máxima.
QUÉ NO HACE
-----------
Este indicador no genera señales de entrada. Es una herramienta de
sesgo contextual diseñada para usarse junto con análisis estructural,
niveles clave y volumen. Funciona mejor en condiciones de tendencia
y pierde fiabilidad en rangos laterales ajustados.
================================================================
BODY LENGTH BIAS — INDICATOR DESCRIPTION
================================================================
🇬🇧 ENGLISH
----------------------------------------------------------------
Body Length Bias is a directional pressure indicator that measures
the accumulated percentage movement of bullish and bearish candles
over a defined lookback period, revealing which side — buyers or
sellers — has exerted more real force on price.
WHAT IT CALCULATES
------------------
For each candle in the last X bars, the indicator calculates the
body movement as a percentage relative to the open price:
|close - open| / open * 100
It accumulates that percentage separately for bullish candles
(close >= open) and bearish candles (close < open). The side with
the higher total percentage is considered the dominant force.
WHAT IT SHOWS
-------------
A fixed label in the bottom-right corner of the chart displays:
- Current bias: BULLISH or BEARISH
- Accumulated percentage for each side
- Number of candles being analyzed
Background and text colors are fully customizable.
HOW TO USE IT
-------------
Trend filter:
Only look for long setups when bullish % > bearish %, and short
setups when bearish % > bullish %. Avoid trading against the
dominant side.
Range detection:
When both values are nearly equal (e.g. 50/50), the market is in
consolidation. No directional bias is present — wait for a breakout.
Exhaustion reading:
If one side has dominated for many candles but the gap is closing,
directional pressure is fading — a reversal may be forming.
Multi-timeframe confluence:
Apply the indicator on H4, H1, and 15m simultaneously. When all
three align in the same direction, confluence is at its highest.
WHAT IT DOES NOT DO
-------------------
This indicator does not generate entry signals. It is a contextual
bias tool designed to be used alongside structural analysis, key
levels, and volume. It works best in trending conditions and loses
reliability in tight sideways ranges.
================================================================
🇪🇸 ESPAÑOL
----------------------------------------------------------------
Body Length Bias es un indicador de presión direccional que mide
el movimiento porcentual acumulado de las velas alcistas y bajistas
durante un período definido, revelando qué lado — compradores o
vendedores — ha ejercido mayor fuerza real sobre el precio.
QUÉ CALCULA
-----------
Por cada vela de las últimas X barras, el indicador calcula el
movimiento del cuerpo como porcentaje respecto al precio de apertura:
|close - open| / open * 100
Ese porcentaje se acumula por separado para las velas alcistas
(close >= open) y las bajistas (close < open). El lado con mayor
porcentaje total es considerado la fuerza dominante.
QUÉ MUESTRA
-----------
Un cartel fijo en la esquina inferior derecha del gráfico muestra:
- Sesgo actual: BULLISH o BEARISH
- Porcentaje acumulado de cada lado
- Número de velas analizadas
El color de fondo y el color del texto son completamente configurables.
CÓMO USARLO
-----------
Filtro de dirección:
Busca solo largos cuando alcista % > bajista %, y solo cortos cuando
bajista % > alcista %. Evita operar contra el lado dominante.
Detección de rango:
Cuando ambos valores están casi igualados (ej. 50/50), el mercado
está en consolidación. No hay sesgo direccional — espera una ruptura.
Lectura de agotamiento:
Si un lado ha dominado durante muchas velas pero la diferencia se
está cerrando, la presión direccional se está agotando — puede estar
formándose un giro.
Confluencia multi-timeframe:
Aplica el indicador en H4, H1 y 15m simultáneamente. Cuando los
tres apuntan en la misma dirección, la confluencia es máxima.
QUÉ NO HACE
-----------
Este indicador no genera señales de entrada. Es una herramienta de
sesgo contextual diseñada para usarse junto con análisis estructural,
niveles clave y volumen. Funciona mejor en condiciones de tendencia
y pierde fiabilidad en rangos laterales ajustados.
================================================================
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.