OPEN-SOURCE SCRIPT
已更新 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.
發行說明
.開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。