PROTECTED SOURCE SCRIPT
Aggiornato

BK AK-Session Barricade

66
🗽🛡️ BK AK–Session Barricade 🗽🛡️

All glory to G-d — the true source of wisdom, restraint, and right timing.
AK — every indicator I publish carries his standard: discipline, patience, clean execution.

Session Barricade is not a signal generator.
It’s a battlefield fence: it draws the session container, exposes auction control (VWAP vs TWAP), and layers context (trend state, momentum, delta, imbalances, POC/VA, patterns, Gann partitions) so price must prove acceptance/rejection before you act.

🧠 What it does (big picture)

Barricade builds a session-based market map directly on your chart.

1) Session Range “Barricade” Box

Tracks Session Open / High / Low / Close in real time.

Draws Top/Bottom borders + optional Midpoint.

Optional bias shading + optional vertical/horizontal gradient fill.

Tracks directional streaks and labels the session with ▲/▼ + streak # (trend persistence).

2) Previous Session Levels (memory rails)

Projects prior session levels into the current session:

Prev High / Prev Low (default ON)

Optional: Prev Open / Prev Close / Prev Mid

Optional extend-right so the level stays active into the current session (trade it as a rail, not a history line).

3) TWAP (Session)

Session-reset TWAP (time fairness).

Option to show current session only for clean charts.

4) VWAP (Session) + σ Bands

Session-reset VWAP (auction fairness).

1σ / 2σ / 3σ bands computed from session variance (rolling variance engine).

Purpose: define fair value vs stretch, and quantify displacement from mean.

5) Reference VWAP (two methods)

A second VWAP layer for regime anchoring:

True Anchored VWAP engine (real anchor + reset):

Anchor to Prev Session Open, Last Pivot High/Low, ATH, or ATL

Includes ±1σ / ±2σ bands

Optional ta.vwap reference line (baseline)

Modes: True / ta.vwap / Both / Off

6) VWAP Trend State (slope regime)

Calculates VWAP slope % over a lookback and classifies:

Strong Bull / Weak Bull / Flat / Weak Bear / Strong Bear

Optional trend icon on chart

Optional coloring of the session label by trend state (current session)

7) Session Momentum Engine

Session-relative momentum: (price vs session open) smoothed with a session-reset EMA.

Optional momentum line normalized into the session range (so it “lives” inside the box).

Strong/weak thresholds help separate clean push vs fake push.

8) Delta Analysis (lightweight order-flow proxy)

Cumulative Delta approximation using candle direction × volume.

Optional divergence markers:

Bearish: price pushes highs while delta fails

Bullish: price pushes lows while delta holds

Divergence icons are quiet-hours gated to reduce dead-liquidity noise.

9) Order Flow Imbalances

Imbalance boxes print when volume exceeds Average × Threshold:

Buy imbalance = high volume + green candle

Sell imbalance = high volume + red candle

Object count is capped to protect performance.

10) Volume Profile (session) + POC + Value Area

Builds a session volume profile (binning by close due to Pine constraints).

Computes:

POC (highest-volume price bin)

Value Area (70%) expansion around POC

Draw options:

Profile bars

POC line

Value Area box (optional current-only)

11) Pattern Recognition (current session only)

Pivot-confirmed, anti-spam context markers:

Double Tops / Bottoms

Compression Triangles

Tight Ranges
Designed as context, not prophecy.

12) Heat Map Mode

Turns the session box into an intensity map using:

Volatility or Volume metric

Adjustable intensity scaling

13) Gann Levels (optional)

Session range partitioned into 1/8ths

Optional extra sets: 30/60, 33/66, Both

Range source options:

Current session

Previous session

Last pivot range
Purpose: internal harmonic reaction levels inside the session container.

14) Dashboard + Hover Intelligence

UI Mode: Dashboard Panel / Hover Icon / Both / Off

Dashboard summarizes:

VWAP vs TWAP control state

Price relative to VWAP/TWAP

σ position

Momentum

CumΔ

POC/VA (if enabled)

Final state: WAIT / CAUTION / STRONG (confluence-based)

Hover icon provides an on-chart briefing tooltip without clutter.

⚙️ Core logic (how it works)
Session detection (NY time ready)

Uses America/New_York by default (or Exchange timezone).

Default session start:

Intraday: first bar of session

Otherwise: day change

Optional Custom Session input (session string) for ETH/RTH or your own trading day.

Performance protections

Session data stored in a structured record + array.

Hard caps prevent overload:

VP max bars stored per session

VP recalculated every N bars (throttle)

Imbalance boxes capped/trimmed

History filter: show only today / show last N sessions

Quiet Hours gate (anti-noise control)

Default quiet window: 18:00–07:00

When enabled, hides icons/signals during quiet hours (divergences, imbalances, VWAP/TWAP control icon).

The session structure still draws — you keep the map without getting baited by low-liquidity “tells.”

🧭 How to use it (execution workflow)

Step 1 — Treat the session box like a courtroom

Inside the box: rotation/mean reversion is common.

At the rails (top/bottom): hunt rejection (fade) or acceptance (break/hold).

The box is the boundary. Price must testify.

Step 2 — Read control (VWAP vs TWAP)

VWAP leading = participation sponsorship (auction conviction).

TWAP leading = time drift / weaker sponsorship.

Combine with location:

Above both = strength bias

Below both = weakness bias

Mixed = chop risk

Step 3 — Use σ as a stretch/exhaustion ruler

Near VWAP = fair value / magnet zone

1σ/2σ/3σ = displacement zones:

continuation requires momentum + acceptance

exhaustion shows as failure + divergence + snap back

Step 4 — Use POC/VA as “where business happened”

POC = pivot/magnet line

VA edges = acceptance/rejection tests

Strong behaviors:

reject VA edge → rotate to POC

accept VA edge → expand trend

Step 5 — Respect previous session rails

Prev High/Low are “yesterday’s stones.”

Break + hold = regime shift

Break + fail = trap fuel

Step 6 — Add modules only when needed

Delta/divergence = confirmation, not trigger

Imbalances = attention markers, not entries

Patterns = context, not direction

Gann = internal reaction levels, not magic

🧱 Non-negotiable rule

This is a timing + structure map, not a fortune teller.
If you use it to “predict,” you turn a precision tool into superstition.

👑 Watchman on the Wall Lens (Ezekiel 33 × Nehemiah 4)

A watchman doesn’t predict — he warns at the gate. A wall doesn’t guess — it defines the boundary.
This script builds the session wall (box + rails) and posts the watchman (VWAP/TWAP control + gated alerts).
When it’s quiet, it stays silent. When it speaks, it’s the trumpet: price is either granted passage or turned back.

🙏 Respect + Seal

Respect to AK — discipline, patience, clean execution.
All glory to G-d — the source of wisdom and endurance.

🗽🛡️ BK AK–Session Barricade — draw the rails, read control, let price prove itself. 🛡️🗽
Note di rilascio
Tooltip enhacement.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.