OPEN-SOURCE SCRIPT
已更新

Simple VWAP + Bands

1 997
Simple VWAP + Bands
A clean and customizable VWAP (Volume Weighted Average Price) indicator with standard deviation bands and RTH (Regular Trading Hours) session support.

Features:
- VWAP Line: Volume-weighted average price calculation
- Three Standard Deviation Bands: Configurable bands at 1σ, 2σ, and 3σ levels (above and below VWAP)
- RTH Session Support: Option to calculate VWAP only during regular trading hours
- Customizable Session Times: Configure your own trading session hours and timezone
- Clean Visualization: Line breaks between sessions prevent messy connections across non-trading periods
- Toggle Bands: Show/hide individual standard deviation bands as needed

Use Cases:
- Identify overbought/oversold conditions relative to volume-weighted price
- Track price deviation from VWAP during trading sessions
- Support and resistance levels based on standard deviations
- Mean reversion trading strategies
版本注释
- Migrated simplevwap.pine from Pine v5 to v6
- Added Show previous day value as rectangle for the current day
- Rectangle uses the previous trading day’s +1 / -1 VWAP band area
- Changed trading-day boundary to Globex open (18:00 in sessionTZ)
- Show last days now filters by Globex trading day, not midnight
- Previous-day rectangles now show for each visible trading day, not only today
- Added box styling inputs:
- fill color
- border color
- border width
- Fixed empty-array error on bar 0 for rectangle handling

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。