PROTECTED SOURCE SCRIPT
VWAP STDev Bands (HTF on LTF)

• Plots a VWAP line and four pairs of VWAP standard-deviation bands around it using multipliers 1.28, 1.28, 2.22, 2.51.
• Computes VWAP and the stdev on a higher timeframe you choose (vwapTf, default 3 minutes) and displays those values on whatever chart you are on (e.g., 30s candles).
• VWAP/stdev are volume-weighted and are computed from src (default HLC3).
• VWAP/bands can reset either:
• By an intraday session window (0930-1600 NY) when useSessionReset=true, or
• Daily (NY midnight boundary) when useSessionReset=false.
• Optional: Hide all plots outside the session when using session reset (hideOutsideSession=true).
• Lets you show/hide VWAP and each band pair, and optionally fill the area between each band pair.
• Lets you control colors and line widths for VWAP and each band pair, plus fill transparency.
• Provides two alert conditions:
• Fires when price touches the upper Band 3 (multiplier m3, default 2.22) using high >= u3.
• Fires when price touches the lower Band 3 using low <= l3.
Alerts only evaluate when Band 3 is visible and plots are enabled.
Reasonable inferences (how it behaves on your 30s chart with 3m HTF)
• The lines will look “stepped” or hold constant within each 3-minute block, because the VWAP/bands are calculated on 3-minute candles and then mapped onto 30-second candles.
• If you enable “Hide Outside Session,” the plotted lines disappear outside 0930–1600 NY.
• Computes VWAP and the stdev on a higher timeframe you choose (vwapTf, default 3 minutes) and displays those values on whatever chart you are on (e.g., 30s candles).
• VWAP/stdev are volume-weighted and are computed from src (default HLC3).
• VWAP/bands can reset either:
• By an intraday session window (0930-1600 NY) when useSessionReset=true, or
• Daily (NY midnight boundary) when useSessionReset=false.
• Optional: Hide all plots outside the session when using session reset (hideOutsideSession=true).
• Lets you show/hide VWAP and each band pair, and optionally fill the area between each band pair.
• Lets you control colors and line widths for VWAP and each band pair, plus fill transparency.
• Provides two alert conditions:
• Fires when price touches the upper Band 3 (multiplier m3, default 2.22) using high >= u3.
• Fires when price touches the lower Band 3 using low <= l3.
Alerts only evaluate when Band 3 is visible and plots are enabled.
Reasonable inferences (how it behaves on your 30s chart with 3m HTF)
• The lines will look “stepped” or hold constant within each 3-minute block, because the VWAP/bands are calculated on 3-minute candles and then mapped onto 30-second candles.
• If you enable “Hide Outside Session,” the plotted lines disappear outside 0930–1600 NY.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.