OPEN-SOURCE SCRIPT
Volume Weighted Median Oscillator [AlgoAlpha]

🟠 OVERVIEW
This script measures price movement relative to a volume-weighted median instead of a simple average. It builds an oscillator that reflects where price is positioned compared to the level where most trading activity is concentrated. This helps reduce the effect of outliers and highlights more balanced price zones.
The output combines a momentum histogram and a smoothed oscillator line, both normalized by recent price range. It also includes a signal line and visual zones to show when price is stretched relative to its volume-based center.
🟠 CONCEPTS
🟠 FEATURES
🟠 HOW TO USE
🟠 CONCLUSION
Volume Weighted Median Oscillator combines a volume-based median, normalized momentum, and trend deviation into one view. It focuses on where trading activity is concentrated instead of simple averages. This gives a clearer read on price imbalance and helps traders judge when moves are supported or stretched.
This script measures price movement relative to a volume-weighted median instead of a simple average. It builds an oscillator that reflects where price is positioned compared to the level where most trading activity is concentrated. This helps reduce the effect of outliers and highlights more balanced price zones.
The output combines a momentum histogram and a smoothed oscillator line, both normalized by recent price range. It also includes a signal line and visual zones to show when price is stretched relative to its volume-based center.
🟠 CONCEPTS
- Volume-Weighted Median — The price level where half of the traded volume occurred above and half below within the lookback window.
- Normalized Momentum — The difference between current price and the weighted median, divided by an average price range to keep values comparable across markets.
- Median Trend Deviation — The distance between the median and its longer-term EMA, used to define the main oscillator direction.
- Volume Normalization — Current volume divided by its moving average to highlight periods of higher activity.
- Signal Line — An EMA of the oscillator used to track short-term direction changes.
🟠 FEATURES
- Dual Output Structure — Combines histogram and oscillator line.
• Histogram shows short-term momentum shifts.
• Oscillator line reflects broader deviation from median trend. - Optional Smoothing — Applies WMA smoothing to reduce noise in both outputs.
- Dynamic Ribbon — Visual fill between oscillator and signal line.
• Changes color based on direction.
• Intensity reflects strength of separation. - Overbought and Oversold Zones — Gradient fills beyond defined thresholds.
• Expands visually as extremes increase.
• Helps identify stretched conditions. - Volume-Aware Zero Line — Brightness increases when current volume exceeds its average.
- Volume-Weighted Median Core — Uses sorted price and volume arrays to compute a true weighted median.
• Reduces sensitivity to spikes compared to mean-based indicators.
• Anchors calculations to where trading activity is concentrated. - Built-in Alerts — Includes conditions for crosses, zone entries, and ribbon flips.
🟠 HOW TO USE
- Watch the histogram crossing above or below zero — shows short-term momentum shifts relative to the median.
- Use the main oscillator crossing zero — indicates broader directional bias change.
- Track crosses between the oscillator and its signal line — helps identify early trend shifts.
- Observe entries into extreme zones — signals that price is stretched relative to its volume center.
- Pay attention to ribbon color changes — confirms alignment between momentum and trend.
- Check zero line brightness — higher brightness suggests stronger participation behind moves.
🟠 CONCLUSION
Volume Weighted Median Oscillator combines a volume-based median, normalized momentum, and trend deviation into one view. It focuses on where trading activity is concentrated instead of simple averages. This gives a clearer read on price imbalance and helps traders judge when moves are supported or stretched.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
🚨Get premium: algoalpha.io
🛜Get FREE signals: discord.gg/xCmqTVRexz
💡Tutorials: youtube.com/@AlgoAlpha
🛜Get FREE signals: discord.gg/xCmqTVRexz
💡Tutorials: youtube.com/@AlgoAlpha
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
🚨Get premium: algoalpha.io
🛜Get FREE signals: discord.gg/xCmqTVRexz
💡Tutorials: youtube.com/@AlgoAlpha
🛜Get FREE signals: discord.gg/xCmqTVRexz
💡Tutorials: youtube.com/@AlgoAlpha
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.