OPEN-SOURCE SCRIPT
Diupdate 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.
Catatan Rilis
.Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.