OPEN-SOURCE SCRIPT
Earnings Anchored VWAP

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.
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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.