S/D · v0.4.1 · conf≥70 · agent v1.5

seanv0.4.1

Zone Desk · Architecture

Systems mapv0.4.1 · native

Desk Feeds OFFexness OFFbinance OFFyahoo OFFAgent v1.5.4HQ ≥70 Windows Model offprobing…

Process spine

Architecture · click node to explain

Zone Desk v0.4.1Zone Desk v0.4.1ActorsActorsPresentationPresentationChart 1m · 5sChart 1m · 5sDrawingsDrawingsPredictive panelPredictive panelAgent deskAgent deskLearn Lab Grok 4.5Learn Lab Grok 4.5Trades · window · WATrades · window ·…Systems mapSystems mapEdge / BFFEdge / BFFAuth gateAuth gateChart APIChart APITrades APITrades APILearn APILearn APIAgent backtest APIAgent backtest APISystems status APISystems status APIDomain brainDomain brainModel engineModel engineS/D zonesS/D zonesTrade planTrade planAgent v1.5.4Agent v1.5.4Lab fill n≈1000Lab fill n≈1000Market dataMarket dataExnessExnessRouterRouterYahoo FX/metalsYahoo FX/metalsOps · agentsOps · agentsChart poll 5s@1mChart poll 5s@1mGrok 4.5 ≤10%Grok 4.5 ≤10%Continuous learnContinuous learnSupabaseSupabase

Agent & node interactions

How planes talk — live edge status from desk probes

Live probes

  • Probing desk systems…

System guides

L0 · Boundary

v0.4.1

Zone Desk v0.4.1

Advisory supply/demand scalping desk — multi-feed chart, conf≥70 setup log, Agent lab, Grok 4.5 learn.

How

Chart: full history · 1m default · adaptive live poll · multi-TF S/R.

You see

Nav: Chart · Trades · Agent · Learn · Systems · Zones · Exness · Settings

Open page

L1 · People

Actors (Sean & operator)

Who uses the desk and who runs the infra.

How

Sean is the primary gated desk user (allowlist email).

You see

Email badge in top bar · login page when not bypassed

L1 · Edge

Auth gate & middleware

Every request passes a gate before desk pages load.

How

Next.js middleware runs first on almost every path.

You see

/login · redirects · allowlist errors

L1 · Presentation

1m · 5s

Chart page

Cockpit: market, candles, layers, and the entry/exit plan.

How

Command bar: symbol price · TF chips · Tick / Reload · Full screen (F).

You see

Sticky command bar · slim tool row · chart · plan panel

Open page

L1 · Edge / BFF

Chart API (BFF pipeline)

Server step that glues market data to the model engine.

How

Route: GET /api/chart?symbol=&interval= (force-dynamic, no-store).

You see

Network tab JSON · Refresh · live/delayed/stale badge

L1 · Data in

Market router (Exness → Binance → Yahoo)

Live multi-source prices so zones sit on real candles.

How

Priority: Exness MT5/MetaApi (if configured) → Binance USDT → Yahoo.

You see

Feed pills · Chart ← provider · data status badge

L1 · Data in

Exness broker feed

Optional real Exness prices via MT5 bridge or MetaApi.

How

No free public Exness REST — needs EXNESS_BRIDGE_URL or MetaApi token.

You see

/exness · Exness pill off/live · feed.ok in debug

L1 · Domain brain

Model engine (analysis)

Rule-based detection of zones, bias, score, and trade plan.

How

Computes ATR, swing highs/lows, and window bias.

You see

Zone bands · Fib lines · plan numbers · thesis bullets

L2 · Model concept

Supply & demand zones

Price bands where buyers or sellers previously showed force.

How

Demand: long lower wick + push up → green band.

You see

Green/red chart bands · Zones page cards · Active zone panel

L2 · Decision output

E/S/TP

Entry & exit plan

E / S / TP prices — same numbers on chart and Trades log.

How

Entry at active zone edge (no chase if price already blasted through).

You see

Plan banner · gold ENTRY · red SL · green TP · side panel table

Open page

L1 · Presentation

zoom-safe

Chart canvas

Lightweight Charts: candles, zones, plan lines — zoom preserved live.

How

Full OHLCV history · default viewport recent bars (scroll for history).

You see

Center canvas under tool row

Open page

L1 · Presentation

Drawing tools

Manual trendlines, rays, horizontals, fibs, boxes, notes.

How

Toolbar tools + favourite tools stored in localStorage.

You see

Drawing toolbar under chart · favourites · undo/clear

L1 · Presentation

Predictive analysis panel

Words + scores explaining the same plan as the chart lines.

How

Shows bias, ATR, range position, confidence bar.

You see

Right column on /chart

L1 · Domain brain

v1.5.4

Agent v1.5 backtest

Walk-forward S/R strategy — optimizes expectancy_r_net after costs.

How

Agent v1.5.4: lab fill + volume profile for 1000-trade WR; high_wr selective.

You see

/agent · run · WR% · exp_net · equity · Learn

Open page

L1 · Presentation

scan · ≥70

Trades log

Setup book ≥70 · 30m windows · Scan refresh · taken WR.

How

Scan & refresh pulls liquid markets on 5m (no chart required).

You see

/setups · Scan & refresh · window countdown · WA status

Open page

L1 · Edge / BFF

Trades API

List / scan / save setups · windows · policy.

How

GET /api/trades?scan=1 — multi-symbol refresh

You see

Network · /setups

L1 · Edge / BFF

Learn API

Grok 4.5 / rules model updates + budget gate.

How

GET /api/agent/learn — model, budget, continuous

You see

/learn · Agent Learn

Open page

L1 · Ops process

Grok 4.5

Learn Lab · Grok 4.5

Grok 4.5 proposes model params within 10% SuperGrok Heavy.

How

Fresh backtest + desk outcomes → Grok JSON → model_overrides.

You see

/learn · history · budget strip · data/grok_learn_usage.json

Open page

L1 · Ops process

WA · 30m

WhatsApp · window close

HQ setups (conf≥70) pushed when the 30m window closes.

How

In-desk: processClosedWindows on trades refresh.

You see

WA status on /setups · Systems WA probe

L1 · Platform

Supabase (identity & storage)

Auth + Postgres for users, settings, saved zones/setups.

How

Supabase Auth issues sessions for allowlisted emails.

You see

Login form · settings defaults · schema.sql

L1 · Ops process

Control loop (Sense → Decide → Present)

Adaptive live heartbeat — 5s on 1m, slower on higher TFs.

How

Sense: pull candles from best available provider (Exness→Binance→Yahoo).

You see

Updated badge · live 5s · 1m chip · Refresh button

Boundary · Separation

Not AfriLoop mining zones

This desk is chart S/D — not Zimbabwe logistics supply/demand.

How

AfriLoop mining model = cities, corridors, stockouts, desk RFQ.

You see

docs/BUILD_SCOPE_INVENTORY.md · store SUPPLY_DEMAND_ZONE_MODEL.md