OPEN-SOURCE SCRIPT
Atualizado

STRYK: MOMENTUM

1 882
STRYK: MOMENTUM: puts context on price in one overlay: a rolling volume-weighted average price with deviation bands, a long exponential moving average with an optional smoothing overlay, candles coloured by a selectable read (order-flow delta, participation fuel, or three price-only modes), a volume-participation background shade, and the session level map — previous Day / Week / Month highs and lows with an optional internal quartile grid, plus the overnight Asian range. Every block has a master switch and its own settings, including quick switches for the quartile lines, the zones and the paint mode; run all of it or one piece.

## 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 — sixteen modes

Every candle (body, wick, border) is coloured by the selected mode, fading between a bear colour, a neutral colour and a bull colour through an adjustable response curve. Hide the chart's own candles so only the painted set shows. Most modes self-calibrate against their own recent history (percentile rank rather than fixed thresholds) and brighten when the bar's delta agrees with the read, dimming when it disagrees. Several modes share one visual language: a reference box (a bar's or period's value area, the previous day's range, the overnight range) — blue inside it, deepest at the centre and fading toward the edges; green above, red below, ramping with distance beyond.

Volume-profile modes — every profile is built from intrabar volume at price: **Delta size** (each bar against the prior bar's own point of control and value area), **Delta size HTF** (each bar against the last completed delta-timeframe candle's point of control and value area, alignment checked against the live higher-timeframe delta), **POC trend** (which way the live delta-timeframe candle's point of control has migrated against the completed candles before it — acceptance moving up or down — halved inside that candle's value area, boosted outside it on the migration's side; switchable to the full-session profile), and **Value area** (the session's value area as the box, brightest at the session point of control).

Order-flow modes: **Delta %** (delta as a share of volume, self-calibrated, size-gated, weighted toward how the bar closed, compounding across consecutive same-direction bars), **Fuel × Δ** (sign from the bar's delta, intensity from fuel — spike-aware participation shaped by a bell that stays full above its peak, delta agreement against the bar's own direction, and the side of the EMA), and **Participation band** (crowd presence only, no direction — a smooth gradient across the full participation rank; the background tint switches itself off while this mode is active).

Structure and level modes: **Pivot structure** (above the last confirmed pivot high bull, below the last pivot low bear, between neutral; pivots confirm after the pivot length and do not repaint), **Pivot structure HTF** (the same pivots computed on the delta timeframe's own bars), **Market structure** (a latched trend state that flips only on a close through the opposite pivot; the flip flashes at an intensity set by its quality — break distance and delta agreement — then settles to a baseline that keeps that quality), **Day range position** (the previous day's high and low as the box), and **Asian range position** (the overnight range as the box; breaks from a tight overnight range weigh more).

Trend and momentum modes: **EMA trend** (side of the script's EMA, distance self-calibrated, multiplied by the EMA's own slope and — when a smoothing line is enabled — by the EMA's position against it, with a brief flash on the bar price first crosses), **VWAP σ-distance** (stretch from the rolling VWAP in standard deviations, with a distinct exhaustion colour when price is beyond the chosen σ and delta disagrees), **Candle conviction** (pure price action — body dominance self-calibrated, gated by bar range, compounding across consecutive bars), and **RSI momentum** (gradient around 50, self-calibrated, weighted by RSI velocity and fast/slow agreement, overridden by a distinct colour on confirmed pivot divergence).

## Volume participation background

A volume EMA is normalised 0–100 against its own recent range. At the extremes the chart background tints — one colour when participation is unusually high, another when the tape is unusually quiet. Thresholds, transparency and colours are inputs.

## Session levels

**Previous Day / Week / Month high and low.** Each level comes from the completed period and is drawn from the new period's open — non-repainting. Per-timeframe toggles, colours, widths and how many past levels to keep; optional fade on older levels, name labels with position and per-timeframe text settings, extend-to-chart and project-forward options. Week start (Sunday futures / Monday cash) and the daily session-open hour are inputs. An optional **quartile grid** adds dashed lines at the 25 / 50 / 75% marks inside each shown range, and optional **zones** shade a band around each high and low line — an eighth of the range above and below it.

**Asian range.** High and low of the overnight Asian session (window set in HHMM, exchange time). The range draws dotted while the session builds, confirms solid at the session end, and can extend across the trading day or to the end of the chart. A configurable number of past sessions stays on the chart.

## 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.

## Why these parts are together

Each block answers one part of the same question — is the current move worth trusting, and against which levels: the VWAP and bands give the fair-value anchor and stretch, the EMA gives the higher-order trend, the paint says whether the bar is being paid for (or, in the price-only modes, where it stands in structure), the background says whether anyone is participating at all, and the session levels supply the locations where those answers matter. The components are original implementations built for this combination: the rolling VWAP is window-based rather than session-anchored, the fuel paint is this script's own participation model, and the level engine draws only completed, non-repainting periods.

## Repainting

The live delta-timeframe candle's colour updates on every tick by design; completed candles do not change. Pivots (and the divergence and structure reads built on them) confirm after the pivot length. Streak counters advance only on bar close. Session levels come only from completed periods. The VWAP, bands, EMA, RSI and ATR are standard rolling calculations.

## What it is not

It draws context. It makes no prediction and contains no trade logic.
Notas de Lançamento
Updated the reply ability
Notas de Lançamento
STRYK: MOMENTUM — update

Fixed a Replay memory-limit error — added 25K and 50K intrabar budget options for Bar Replay's tighter memory allowance. Also fixed several logic bugs from an independent code review: the rolling VWAP's live window is now the correct width while a bar forms, VWAP σ-distance reads the raw VWAP instead of the smoothed line, session-day detection now works on equity charts with no 17:00 bar, VWAP exhaustion no longer counts zero delta as disagreement, Delta % trajectory now measures the same thing regardless of data source, and RSI divergence can no longer show both directions at once. Footprint delta is now correctly described as classified from price action, not exchange bid/ask data. No behaviour changes beyond these corrections.
Notas de Lançamento
STRYK: MOMENTUM — update

Display box gained two layouts. Horizontal lays the nine reads out as a single wide strip — labels across the top, values beneath. Mobile shortens the labels, forces Tiny text, and wraps the rows into columns (rows-per-column is adjustable) so the box stays a compact grid on a phone. Vertical remains the default. The squeeze, absorption and release flags keep their colours in every layout.
Notas de Lançamento
added alerts
Notas de Lançamento
STRYK: MOMENTUM — update

Added a Bias row to the display box: three engines vote — acceptance (POC migration), structure (latched pivots), order flow (recency-weighted delta) — weighted and summed into BULL, BEAR, or CONSOLIDATION, with the three votes shown. Disagreement reads as CONSOLIDATION rather than being forced to a side. Added an HTF bias row running the same three engines on a chosen higher timeframe (1H to 1M, selectable). Alerts for both rows on change.

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.