OPEN-SOURCE SCRIPT

Earnings Anchored VWAP

396
Earnings Anchored VWAP

Volume Weighted Average Price anchored to a stock's most recent earnings report, with automatic pre-market / post-market detection and standard deviation bands.

What It Does

This indicator calculates VWAP starting from the most recent earnings date and runs it forward to the present bar. It automatically detects whether earnings were released pre-market or post-market and anchors the VWAP to the correct reaction day:

Pre-market earnings → VWAP starts on the day of the report (the gap day)
Post-market earnings → VWAP starts the following trading day
The earnings VWAP acts as an institutional fair-value reference. Large funds often build positions around earnings and use VWAP from that anchor as a benchmark. Price trading above the earnings VWAP suggests the post-earnings trend is intact; trading below signals that buyers from earnings are underwater.

Features

Auto pre/post market detection using gap analysis (adjustable threshold)
"Show Most Recent EPS Only" toggle to display only the current earnings period
Up to 3 standard deviation bands above and below (individually toggleable)
Separate color and weight controls for VWAP line and deviation bands
Forward extension lines projected from the last bar
Optional chart bubble label
Works on daily, weekly, and intraday timeframes
Inputs

Pre-Mkt Gap Threshold % — Minimum gap size to classify earnings as pre-market (default 1.0%). Lower this for stocks with smaller earnings reactions.
Show Most Recent EPS Only — When enabled, only the VWAP from the latest earnings is drawn. Disable to see all historical earnings VWAPs.
Hide All / 1st / 2nd / 3rd Deviations — Control which standard deviation bands are visible.
Extension Bars — Number of bars to project the VWAP and bands forward using the current slope.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.