OPEN-SOURCE SCRIPT

Stryk: VWAP + EMA

288
# Stryk: VWAP + EMA — publish description

> Paste into the script description. No performance figures, no links, no promotional language. Estimates and data dependencies disclosed.

---

**Stryk: VWAP + EMA** puts three reads on price and nothing else: a rolling volume-weighted average price with deviation bands, a long exponential moving average with an optional smoothing overlay, and candles coloured by order-flow delta. No signals, no labels, no tables.

## Rolling VWAP

Volume-weighted average price over the last N candles of a chosen delta timeframe — with the defaults, 60-minute candles × 20, a 20-hour VWAP that slides forward as each candle completes rather than anchoring to a session. Volume-weighted standard-deviation bands at ±1σ, ±2σ and ±3σ with individual multipliers, colours and an optional ±1σ fill. The window is computed from chart bars on a ring buffer with running sums, so it loads cleanly in bar replay. A visual smoothing pass (adjustable, 1 = off) rounds the small steps that occur as the oldest candle leaves the window; the underlying values are exact.

If the chart timeframe is raised above the delta timeframe, the delta timeframe is lifted to match for that session with the same lookback (switchable to a strict error instead).

## EMA

TradingView's standard exponential moving average — length (default 233), source and offset — with its standard smoothing-MA option (SMA, EMA, SMMA/RMA, WMA, VWMA, or SMA with Bollinger Bands, default length 233) and an additional visual smoothing pass on the plotted line (1 = the stock EMA exactly).

## Candle paint

Every candle (body, wick, border) is coloured by the live delta of the delta-timeframe candle it belongs to, fading between a bear colour, a neutral colour and a bull colour. Two intensity modes: delta size relative to the recent average |Δ|, or delta as a percentage of total volume (imbalance), with a sensitivity input and a square-root "boosted" response curve. Hide the chart's own candles so only the painted set shows.

## Delta source — read this

Where TradingView provides volume footprint data for the bar, delta comes from `request.footprint()` bid/ask buy and sell volume. Footprint availability depends on your plan and the symbol; where it is not available the script falls back to an **estimate** of delta derived from lower-timeframe bar polarity, with the intrabar resolution chosen automatically against your plan's data budget. Estimated delta is not order-flow data and can differ materially from true delta. The footprint is built from TradingView's own tick feed: a broker data subscription does not make it real-time, and a "Delayed" chip on the chart means the colours are delayed by the same amount.

## Repainting

The live delta candle's colour updates on every tick by design; completed candles do not change. The VWAP, bands and EMA are standard rolling calculations.

## What it is not

It draws context. It makes no prediction and contains no trade logic.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.