OPEN-SOURCE SCRIPT
Supply and Demand Balance Indicator

Supply and Demand Balance Indicator
The Supply and Demand Balance Indicator measures market pressure by comparing the moving averages of buying volume and selling volume.
The indicator classifies each candle as either bullish or bearish:
・Bullish candle (Close > Open): Volume is counted as buying volume.
・Bearish candle (Close < Open): Volume is counted as selling volume.
A moving average is then calculated separately for buying and selling volume. The difference between these two averages is plotted as a column chart around the zero line.
Interpretation
・Green bars above zero: Buying pressure is dominant.
・Red bars below zero: Selling pressure is dominant.
・Increasing positive values: Demand is strengthening.
・Increasing negative values: Supply is strengthening.
This indicator can be used to:
・Identify shifts in market sentiment.
・Confirm trend direction.
・Detect potential trend reversals.
・Filter entries for trend-following strategies.
The indicator is intentionally simple and can be combined with moving averages, momentum indicators, or price action analysis.
How to Use
This indicator is designed to be used together with the Supply & Demand Volume Indicator.
Supply & Demand Volume Indicator
・Green line above the red line: Buying pressure is dominant.
・Red line above the green line: Selling pressure is dominant.
Supply/Demand Balance
Green bars above zero: Buying pressure is increasing.
Red bars below zero: Selling pressure is increasing.
Example Usage
Bullish Conditions
1.The Buying Volume MA (green line) is above the Selling Volume MA (red line).
2.The Supply/Demand Balance turns positive and prints green bars.
This combination may indicate strengthening demand and a potential upward trend.
Bearish Conditions
1.The Selling Volume MA (red line) is above the Buying Volume MA (green line).
2.The Supply/Demand Balance turns negative and prints red bars.
This combination may indicate increasing supply and a potential downward trend.
Notes
These indicators are intended to measure market participation and volume pressure. They work best when combined with trend-following tools, moving averages, or price action analysis.
The Supply and Demand Balance Indicator measures market pressure by comparing the moving averages of buying volume and selling volume.
The indicator classifies each candle as either bullish or bearish:
・Bullish candle (Close > Open): Volume is counted as buying volume.
・Bearish candle (Close < Open): Volume is counted as selling volume.
A moving average is then calculated separately for buying and selling volume. The difference between these two averages is plotted as a column chart around the zero line.
Interpretation
・Green bars above zero: Buying pressure is dominant.
・Red bars below zero: Selling pressure is dominant.
・Increasing positive values: Demand is strengthening.
・Increasing negative values: Supply is strengthening.
This indicator can be used to:
・Identify shifts in market sentiment.
・Confirm trend direction.
・Detect potential trend reversals.
・Filter entries for trend-following strategies.
The indicator is intentionally simple and can be combined with moving averages, momentum indicators, or price action analysis.
How to Use
This indicator is designed to be used together with the Supply & Demand Volume Indicator.
Supply & Demand Volume Indicator
・Green line above the red line: Buying pressure is dominant.
・Red line above the green line: Selling pressure is dominant.
Supply/Demand Balance
Green bars above zero: Buying pressure is increasing.
Red bars below zero: Selling pressure is increasing.
Example Usage
Bullish Conditions
1.The Buying Volume MA (green line) is above the Selling Volume MA (red line).
2.The Supply/Demand Balance turns positive and prints green bars.
This combination may indicate strengthening demand and a potential upward trend.
Bearish Conditions
1.The Selling Volume MA (red line) is above the Buying Volume MA (green line).
2.The Supply/Demand Balance turns negative and prints red bars.
This combination may indicate increasing supply and a potential downward trend.
Notes
These indicators are intended to measure market participation and volume pressure. They work best when combined with trend-following tools, moving averages, or price action analysis.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.