OPEN-SOURCE SCRIPT

Pivot Points + VWAP + EMA200 + Fixed Range VP (POC)

101
Indicator description — Pivot Points + VWAP + EMA200 + Fixed Range VP (POC)

Short summary
A composite TradingView indicator (Pine v6) that overlays classic pivot points, session/period VWAP with optional deviation bands, an EMA-200 trend filter, and a fixed-range volume profile with Value Area and Point Of Control (POC). Designed to give a single view of key horizontal levels (pivots, VWAP bands, POC) and trend context to speed intraday and swing trade decisions.

Key features

Multiple Pivot types & anchor periods — Traditional, Fibonacci, Woodie, Classic, DM, Camarilla; anchors from Auto/Daily up to multi-year. Option to calculate from daily values on intraday charts.

Pivot drawing & labels — Draws historical pivot levels with configurable colors, line width, label position (Left/Right) and how many pivot periods to keep. Automatically trims older pivot sets beyond the configured limit.

VWAP + deviation bands — VWAP anchored to Session / Week / Month / Quarter / Year (plus Earnings/Dividends/Splits). Optional bands by Standard Deviation or Percentage (up to 3 multipliers). Option to hide on daily/weekly/monthly (DWM) charts.

EMA-200 trend filter — Plotted as a clear orange line; use to identify major trend bias.

Fixed-range Volume Profile (VP) with POC — Builds a fixed lookback VP over bbars bars, shows up/down volume boxes, value area (percent configurable) and draws the POC line + optional POC label. VP is rendered as boxed histogram with configurable rows and colors.

Performance/robustness safeguards — Handles multi-timeframe pivots, provides clear runtime errors when intraday data is insufficient for requested pivot timeframe, and caps the number of drawn objects to avoid overrun.

Inputs & what they do (high level)

Pivot Settings

Type: pivot formula (Traditional, Fibonacci, etc.).

Pivots Timeframe: Auto / Daily / Weekly / Monthly / ... multi-year.

Number of Pivots Back: how many historical pivot periods to keep.

Use Daily-based Values: when enabled, pivots always use daily OHLC (useful on intraday charts).

Show Labels / Show Prices / Labels Position / Line Width — visual tweaks for pivot lines and labels.

Pivot Levels / Colors — Toggle visibility and color for P, R1..R5, S1..S5 (levels shown depend on pivot type).

VWAP Settings

Hide VWAP on 1D or Above: hides VWAP on daily+ charts.

Anchor Period: Session / Week / Month / Quarter / Year / Decade / Century / Earnings / Dividends / Splits.

VWAP Source (default hlc3) and Offset.

Bands Settings

Bands Mode: Standard Deviation or Percentage.

Multipliers: up to three bands (1×, 2×, 3× by default); toggle visible bands.

Volume Profile (VP)

VP Lookback Bars (bbars): number of bars included in fixed range.

VP Rows (cnum): vertical resolution (number of price bins).

Value Area %: e.g., 70%.

POC Color / Width, Up/Down colors and Show POC Label.

How to use it (practical tips)

Trend filter: use EMA-200 — price above EMA200 = bullish bias, below = bearish bias.

VWAP confluence: intraday trades near VWAP or VWAP bands often have higher confluence. Use the selected anchor (Session for intraday, Week/Month for swing).

Pivot levels for targets & S/Ls: pivot levels (P, R1/R2, S1/S2…) make quick, rule-based targets and stops. Combine pivot + VWAP/POC for stronger S/R.

Volume Profile & POC: POC = single price with highest traded volume in the range — acts as a magnet/support/resistance. Use value area (VA) boundaries to spot acceptance/rejection.

Multi timeframe: choose pivot anchor appropriate to your horizon (Session/Daily for intraday scalps; Weekly/Monthly for swing). If you lack intraday history, enable “Use Daily-based Values” to avoid pivot errors.

Performance note: the fixed-range VP is calculated only on the last bar (barstate.islast) and draws boxes/POC accordingly — the VP will represent the configured lookback ending at the latest bar.

Limitations & gotchas

Intraday pivot calculation needs sufficient history. If you request intraday pivots but the chart lacks enough bars, the script throws a runtime error with guidance.

VP is built only on the last bar (to keep resource usage reasonable). That means the VP boxes and POC are recalculated for the latest lookback window; historical VP boxes are removed each update.

Object count: indicator creates many graphical objects (lines, labels, boxes). The script includes caps and cleanup, but very long backtests or extremely small pivot intervals may still use many objects — adjust “Number of Pivots Back” and VP lookback to manage.

Repainting considerations: pivots use request.security(..., lookahead=barmerge.lookahead_on) for daily-based option and time synchronization; be mindful when using historical bar-by-bar automation or backtesting — visual levels are intended for analysis and manual decision-making rather than automated entry triggers without further validation.

Compatibility & installation

Pine Script version: v6. Use on TradingView.

Add to chart: Copy the whole script into TradingView’s Pine editor, save and add to chart. Ensure sufficient chart history for selected pivot/VP settings.

Suggested default workflow (example)

Set Pivot Anchor = Session, Type = Traditional, Use Daily-based Values = off for true intraday pivots.

VWAP Anchor = Session, show Band #1 at 1× for quick mean-reversion zones.

EMA-200 visible (default) to filter trade direction.

VP Lookback Bars ~ 150, Value Area 70% to see a 150-bar market profile and POC.

Trade entries: look for price reaction (rejection / engulfing / volume spike) at pivot/R1/VWAP/POC aligned with EMA-200 trend.

Short blurb (for scripts list / marketplace)

Pivot Points + VWAP + EMA200 + Fixed Range VP (POC) — a compact, all-in-one overlay that combines classic pivot levels, session-anchored VWAP with deviation bands, a 200-period EMA trend filter, and a fixed-range volume profile with Value Area and POC. Built for intraday and swing traders who want consolidated horizontal structure and volume context on one chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.