OPEN-SOURCE SCRIPT
업데이트됨

Range breaking indicator

57
Description

Bull/Bear Area Ratio (last N candles) helps identify potential end-of-range situations by analyzing the relative strength of bullish vs bearish candles over a rolling window of N bars.

Instead of simply counting up or down candles, this script measures the "area" of each candle — the absolute distance between open and close, optionally weighted by volume.
By summing these areas over the last N bars, it calculates the percentage of bullish and bearish energy within that period.

When both sides become balanced (near 50/50), it often signals range exhaustion or possible trend transition.

How it works

Calculates the bullish and bearish area of each candle (abs(close - open), optionally × volume).

Maintains rolling buffers of the last N bars to compute running totals.

Plots both Bullish % (green) and Bearish % (red).

Highlights possible range-ending zones when the bullish ratio nears 50% ± threshold.

Displays a label showing the current balance.

Includes an alert condition when equilibrium is detected.

Inputs

Number of candles (N) – Rolling window length.

Use volume weighting – Multiplies each candle’s area by its volume.

Balance threshold (%) – Sensitivity for detecting equilibrium (default: 10%).

Best use

Combine with volume or volatility indicators to confirm market compression or expansion.

Use on higher timeframes (H1, H4, D1) to detect early signs of accumulation or distribution.

Works across all asset types: crypto, forex, stocks, indices, etc.

Alerts

An alert is triggered when:

“The range of the last N candles is balanced (possible end of range).”
릴리즈 노트
Description

Bull/Bear Area Ratio (last N candles) helps identify potential end-of-range situations by analyzing the relative strength of bullish vs bearish candles over a rolling window of N bars.

Instead of simply counting up or down candles, this script measures the "area" of each candle — the absolute distance between open and close, optionally weighted by volume.
By summing these areas over the last N bars, it calculates the percentage of bullish and bearish energy within that period.

When both sides become balanced (near 50/50), it often signals range exhaustion or possible trend transition.

How it works

Calculates the bullish and bearish area of each candle (abs(close - open), optionally × volume).

Maintains rolling buffers of the last N bars to compute running totals.

Plots both Bullish % (green) and Bearish % (red).

Highlights possible range-ending zones when the bullish ratio nears 50% ± threshold.

Displays a label showing the current balance.

Includes an alert condition when equilibrium is detected.

Inputs

Number of candles (N) – Rolling window length.

Use volume weighting – Multiplies each candle’s area by its volume.

Balance threshold (%) – Sensitivity for detecting equilibrium (default: 10%).

Best use

Combine with volume or volatility indicators to confirm market compression or expansion.

Use on higher timeframes (H1, H4, D1) to detect early signs of accumulation or distribution.

Works across all asset types: crypto, forex, stocks, indices, etc.

Alerts

An alert is triggered when:

“The range of the last N candles is balanced (possible end of range).”
릴리즈 노트
Description

Bull/Bear Area Ratio (last N candles) helps identify potential end-of-range situations by analyzing the relative strength of bullish vs bearish candles over a rolling window of N bars.

Instead of simply counting up or down candles, this script measures the "area" of each candle — the absolute distance between open and close, optionally weighted by volume.
By summing these areas over the last N bars, it calculates the percentage of bullish and bearish energy within that period.

When both sides become balanced (near 50/50), it often signals range exhaustion or possible trend transition.

How it works

Calculates the bullish and bearish area of each candle (abs(close - open), optionally × volume).

Maintains rolling buffers of the last N bars to compute running totals.

Plots both Bullish % (green) and Bearish % (red).

Highlights possible range-ending zones when the bullish ratio nears 50% ± threshold.

Displays a label showing the current balance.

Includes an alert condition when equilibrium is detected.

Inputs

Number of candles (N) – Rolling window length.

Use volume weighting – Multiplies each candle’s area by its volume.

Balance threshold (%) – Sensitivity for detecting equilibrium (default: 10%).

Best use

Combine with volume or volatility indicators to confirm market compression or expansion.

Use on higher timeframes (H1, H4, D1) to detect early signs of accumulation or distribution.

Works across all asset types: crypto, forex, stocks, indices, etc.

Alerts

An alert is triggered when:

“The range of the last N candles is balanced (possible end of range).”
릴리즈 노트
Description

Bull/Bear Area Ratio (last N candles) helps identify potential end-of-range situations by analyzing the relative strength of bullish vs bearish candles over a rolling window of N bars.

Instead of simply counting up or down candles, this script measures the "area" of each candle — the absolute distance between open and close, optionally weighted by volume.
By summing these areas over the last N bars, it calculates the percentage of bullish and bearish energy within that period.

When both sides become balanced (near 50/50), it often signals range exhaustion or possible trend transition.

How it works

Calculates the bullish and bearish area of each candle (abs(close - open), optionally × volume).

Maintains rolling buffers of the last N bars to compute running totals.

Plots both Bullish % (green) and Bearish % (red).

Highlights possible range-ending zones when the bullish ratio nears 50% ± threshold.

Displays a label showing the current balance.

Includes an alert condition when equilibrium is detected.

Inputs

Number of candles (N) – Rolling window length.

Use volume weighting – Multiplies each candle’s area by its volume.

Balance threshold (%) – Sensitivity for detecting equilibrium (default: 10%).

Best use

Combine with volume or volatility indicators to confirm market compression or expansion.

Use on higher timeframes (H1, H4, D1) to detect early signs of accumulation or distribution.

Works across all asset types: crypto, forex, stocks, indices, etc.

Alerts

An alert is triggered when:

“The range of the last N candles is balanced (possible end of range).”

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.