OPEN-SOURCE SCRIPT
업데이트됨

OBV Trend Candles

511
OBV Trend Candles

This indicator colors your candles based on the relationship between On-Balance Volume (OBV) and a moving average of OBV. It's a simple way to keep volume-based trend context visible directly on the price chart, without having to watch a separate OBV pane.

How it works

OBV accumulates volume on up-closes and subtracts it on down-closes, so a rising OBV means volume is flowing into the asset and a falling OBV means it's flowing out. This script takes that OBV line and compares it to a simple moving average of itself:

When OBV is above its SMA, volume momentum is building → candles are painted green.
When OBV is below its SMA, volume momentum is fading → candles are painted red.

The idea is that volume often shifts before or alongside price, so the color flips can give you a read on whether the current move is backed by participation.

The Sensitivity input

The single setting that matters is Sensitivity, which is the length of the SMA applied to OBV. Lower values make the indicator react faster to changes in volume flow (more color flips, more noise), while higher values smooth things out and only flip on more established shifts. Tune it to your timeframe and trading style — there's no universally "correct" value.

Notes

It works on any timeframe and any asset, as long as that asset reports volume data. On symbols without volume (some forex pairs and certain indices), OBV can't be calculated and the script will let you know. Colors are fully customizable in the settings.

This is a context/confirmation tool, not a standalone signal — it tells you about volume flow, not where to enter or exit. Use it alongside your own analysis.
릴리즈 노트
Adding a color flip transition selector.
릴리즈 노트
Small display adjustment
릴리즈 노트
Changed the indicator names to OBV Trend Detection

면책사항

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