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. קרא עוד ב־תנאי השימוש.