OPEN-SOURCE SCRIPT
Zaktualizowano OBV StdDev Trend Breakout

Overview
OBV StdDev Trend Breakout is a volume-based trend indicator built on On-Balance Volume. It compares OBV against its moving average and applies standard deviation bands to identify meaningful breakout conditions, then uses the OBV relationship to its average as the trend filter to confirm bullish or bearish bias.
How It Works
The indicator calculates upper and lower standard deviation bands around OBV. A bullish signal is triggered when OBV breaks above the prior upper band while remaining above its moving average, indicating expanding upside volume pressure with trend confirmation. A bearish signal is triggered when OBV breaks below the prior lower band while remaining below its moving average, indicating expanding downside volume pressure with trend confirmation. Once a bias is established, it persists until the opposing condition is met.
Visual Features
OBV line color updates dynamically based on the current bullish or bearish state.
Upper and lower standard deviation bands are calculated and used internally for breakout logic.
A normalized OBV baseline at 1 provides a clean reference for whether OBV is above or below its average.
Candle colors update to reflect the current OBV bias on the chart.
Inputs
SMA Period - controls the moving average length used as the trend baseline.
Standard Deviation Length - controls the lookback for standard deviation band calculation.
Standard Deviation Multiplier - adjusts the width of the bands.
Alerts
Bullish OBV Breakout: OBV breaks above the upper standard deviation band and remains above its moving average.
Bearish OBV Breakout: OBV breaks below the lower standard deviation band and remains below its moving average.
OBV StdDev Trend Breakout is a volume-based trend indicator built on On-Balance Volume. It compares OBV against its moving average and applies standard deviation bands to identify meaningful breakout conditions, then uses the OBV relationship to its average as the trend filter to confirm bullish or bearish bias.
How It Works
The indicator calculates upper and lower standard deviation bands around OBV. A bullish signal is triggered when OBV breaks above the prior upper band while remaining above its moving average, indicating expanding upside volume pressure with trend confirmation. A bearish signal is triggered when OBV breaks below the prior lower band while remaining below its moving average, indicating expanding downside volume pressure with trend confirmation. Once a bias is established, it persists until the opposing condition is met.
Visual Features
OBV line color updates dynamically based on the current bullish or bearish state.
Upper and lower standard deviation bands are calculated and used internally for breakout logic.
A normalized OBV baseline at 1 provides a clean reference for whether OBV is above or below its average.
Candle colors update to reflect the current OBV bias on the chart.
Inputs
SMA Period - controls the moving average length used as the trend baseline.
Standard Deviation Length - controls the lookback for standard deviation band calculation.
Standard Deviation Multiplier - adjusts the width of the bands.
Alerts
Bullish OBV Breakout: OBV breaks above the upper standard deviation band and remains above its moving average.
Bearish OBV Breakout: OBV breaks below the lower standard deviation band and remains below its moving average.
Informacje o Wersji
.Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.