OPEN-SOURCE SCRIPT

Smooths VWAP Suite

602
Title: Smooth's VWAP Suite: Advanced Futures Context & Filtered Signals
Description:

Overview & Purpose
Smooth's VWAP Suite is a comprehensive volume-weighted average price toolkit engineered specifically for futures traders (e.g., NQ, ES).

The primary justification for combining these specific elements—Daily VWAP, Standard Deviation Bands, Session AVWAPs (Overnight, RTH, Weekly), and dynamic signals—into a single script is to solve the problem of "context fragmentation." Futures markets respect multiple volume anchors simultaneously. Rather than cluttering a chart with five individual, unlinked indicators, this suite unites micro (intraday) and macro (weekly) volume levels into one cohesive map. Furthermore, it introduces a custom "Current Day Only" filter mathematically anchored to the 18:00 EST futures open, fixing the common issue where standard indicators rely on the midnight calendar-day rollover.

How It Works: Underlying Concepts & Logic
This script calculates the Volume-Weighted Average Price by maintaining a cumulative running total of Price × Volume, divided by Total Volume.

Session AVWAPs & Previous Day: The script calculates distinct VWAPs based on specific time anchors. It automatically tracks the Weekly open, the Regular Trading Hours (RTH) open, and the Overnight (OVN) session. It also statically plots the Previous Day's closing VWAP value, acting as a critical pivot for the current session.

Standard Deviation Variance: The bands surrounding the Daily VWAP are calculated using the mathematical square root of volume-weighted variance. This provides dynamic, mathematically sound support and resistance zones based on current market volatility, plotted at user-defined multipliers (defaulting to 1.0, 2.0, and 3.0 SD).

Signal Engine & EMA Filter: The built-in signals are not basic crossovers. To prevent false signals in chopping ranging markets, the script requires an EMA (Exponential Moving Average) directional filter to confirm the trend.

Reversal/Cross Signals: Trigger when price straddles the VWAP, closes on the opposite side, is aligned with the EMA slope, and is positioned correctly relative to the Weekly VWAP.

Continuation Signals: Trigger when price pushes into a Standard Deviation band (e.g., SD 1 or SD 2) and actively rejects it, closing back toward the trend direction while maintaining the EMA slope.

How Traders Can Use It
This suite is designed for trend identification, mean-reversion targeting, and precise entry confirmation.

Macro Context Alignment: Use the Weekly and Previous Day VWAP lines to determine the broader bias. If the current Daily VWAP is trading above both, the macro trend is bullish.

Mean Reversion: When price extends into the SD 2 or SD 3 bands, the asset is statistically overextended based on current volume. Traders can look for price action weakness at these extremes to target a reversion back to the Daily VWAP (the mean).

Signal Execution: Utilize the script's visual markers (Arrows/Triangles) for entry confirmations. A bullish signal firing after a bounce off the lower SD 1 band, while the Daily VWAP remains above the Weekly VWAP, offers a high-probability continuation setup.

Chart Decluttering: For active day traders, toggle the "Current Day Only" setting. This utilizes custom logic to sever all historical visual data prior to the exact 18:00 EST futures anchor, keeping your screen entirely focused on the current session's price action.

Customization
Every element is modular. Traders can toggle specific bands, adjust standard deviation multipliers, change the EMA filter length for signals, and customize the visual offsets of the price labels to fit their specific screen layout.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.