🐘
STOCK MARKET ELEPHANT Gemini Enterprise System
Loading snapshot…
Gemini Enterprise · Deterministic MNQ Engine · System Command Center

Engineering HQ — Plans, Gates, Pine Lab & Gemini Enterprise Agents

Live engineering workspace for the Stock Market Elephant Automated Trading System: master build roadmap, pre-open VIX Expected-Range calculator, Gate 0 → Gate 4 verification matrix, all 35 append-only trials.jsonl runs, the 32-item Strategy Graveyard, calibrated Gemini Enterprise + sme_ev_ridge10_v1 EV classifier + TradeZella MCP audit agents, and our $35 hard-capped Google Cloud runtime.

System Architecture

Deterministic Engine + Gemini Enterprise Agent Layer on GCP

Every rule with exact bar math (RT Levels BATCH_MODE, VIX expected-range sigma, 15m 1-2-3 triggers, trailing-drawdown limits) runs in deterministic Python (mnq_engine + mnq_er). Gemini Enterprise agents govern calibrated A+ setup rubric scoring (gemini-decision-1), pre-open VIX/calendar readiness, post-session attribution, and automated verification gates.

Layer 1 · Chart & Feed

TradingView + 1m Stream

  • displacement_zone.pine v3.1
  • RT Levels v6 (BATCH_MODE)
  • CBOE VIX + Databento / Tradovate 1m
Layer 2 · Deterministic Core

mnq_engine + mnq_er

  • Sleeve 1: ±0.75σ Gated INRS/INRW
  • Sleeve 2: ±1.0σ Lead B Breakout
  • Prop Risk: $2k Trailing DD, $1k DLL
Layer 3 · Gemini Enterprise

google-adk + Decisions API

  • setup-rubric-agent (gemini-decision-1)
  • preopen-ops-agent (gemini-4-argon)
  • Agent Registry + Model Armor
Layer 4 · Warehouse & UI

BigQuery + GitHub Pages

  • BQ sme_trading.* (6 tables)
  • Keyless GitHub OIDC CI/CD
  • stockmarketelephant.com
Execution Roadmap

Phased Build Plan (No Skipping Verification Gates)

Tracked directly from version-controlled manifests in mnq-lab and deployed automatically via GitHub Actions.

Architecture Decisions (ADRs)

Locked Design Calls

ADRDecisionWhy
Compliance & Safety

Prop-Firm Cloud Automation Matrix

Cloud servers count as VPS/remote hosts. Never connect cloud execution to firms that ban VPS automation.

FirmBackendCloud / VPS BotStatus
Lucid (LucidFlex)Tradovate / RithmicAllowed (no HFT <5s)PRIMARY TARGET
MyFundedFutures (MFFU)TradovateVerify eval plan API clauseSIZING MODELLED
TradeifyTradovateAllowed w/ ownership videoWORKABLE
TopstepTopstepX (ProjectX)Prohibits VPS / Funded APINEVER ON CLOUD
Pre-Open Expected Range (mnq_er)

Latest Session Displacement Levels VIX FRESH

LevelFormulaMNQ PriceOffset (pts)
Interactive Morning Desk Tool

Live Displacement & Contract Calculator

Check TradingView's Displacement Zone v3.1 table at 09:25 ET — numbers must match to the tick. Contracts capped at 5 MNQ.

Two-Sleeve Portfolio Evidence (2021-07 → 2026-11)

Why the Engine + Displacement Zone Turned -$6,001 into +$12,355 (and +33.3R/yr Combined)

Sleeve 1 = RakeTrades v1.3 15m INRS/INRW gated beyond ±0.75σ (ATO off). Sleeve 2 = Lead B ±1.0σ band-breakout continuation (0.25σ stop, passed blind check +0.236R). Daily correlation ρ = 0.27.

WindowPortfolio ConfigurationWeights Ann. SharpeR / Year Max DD (R)Worst MonthTrade Days
TradingView Pine v6 Suite

Production Indicators & Engine Parity Lock

ScriptVersionRole in SystemEngine Parity
Verification Pipeline (mnq-lab/verification/GATES.md)

Gate 0 → Gate 4 Progression Matrix

No strategy or prompt advances without passing gates in order, signed by git commit hash and logged append-only in trials.jsonl.

Candidate / Sleeve Gate 0: Integrity & No-Lookahead Gate 1: Walk-Forward + Costs Gate 2: CPCV / PBO / DSR Gate 3: Prop MC Stress Gate 4: 20-Session Paper
Append-Only Multiplicity Log

Engine Trial Ledger (verification/trials/trials.jsonl)

#Timestamp (UTC)Git HashStrategyWindowTradesSharpeResult / Note
Falsified Hypotheses

The Strategy Graveyard (Never Re-Test Without New Data)

IDHypothesis / FamilyDataset / ScopeMeasured ResultWhy Killed
Google Cloud · Keyless Gemini Enterprise Runtime

Gemini Enterprise Agent Registry & Runtime Fleet

Built exclusively on google-genai >= 3.2.0 with keyless IAM authentication, strict deterministic Iron Gates, and scale-to-zero Cloud Run + weekday Cloud Scheduler triggers.

Blind Benchmark (n = 1,320 Historical Setups)

Setup Rubric Evidence & LLM Alpha

Single-criterion splits on 3,162 historical candidates vs. blind LLM grader on 1,320 setups: indicator + LLM A+ agreement reached +0.320R (vs. -0.007R unconditional).

Rubric Criterion / CohortPass nPass Avg RFail Avg REdge ΔR
Verified Live Cloud Run Readout

Production Smoke-Test & Endpoint Console

Verified live responses from sme-trading-agent on Cloud Run (us-central1) logging directly into BigQuery sme_trading.*. Paste your private Cloud Run URL below (saved only in browser localStorage) to trigger live calls from this tab.

{
  "endpoint": "POST /api/grade-setup",
  "action": "TAKE",
  "contracts": 4,
  "actual_risk_usd": 196.0,
  "gate_passed": true,
  "rubric": {
    "engine": "gemini_enterprise_interactions",
    "model": "gemini-4-argon",
    "grade": "A_PLUS",
    "p_take": 0.88,
    "confidence": 0.92
  },
  "bq_logged": true,
  "topstep_cloud_guard": "HTTP 403 COMPLIANCE BLOCK"
}
Public Forward Test (2026-11-09 → 2027-01-08)

The $20k Test — Live Guardrails

42 trading sessions · $2,000 evaluation spend cap · $1,000 daily loss limit · 5 MNQ max · entries until 15:30 ET, flat by 16:10 ET.

MFFU / Lucid $50K Evaluation Frontier

Two-Sleeve Prop Sizing Math (5,000 Bootstrap Paths)

Adding Sleeve 2 (Lead B) at $200/trade lifts 1-year pass rate from 52% → 60% at identical blow-up risk (39%) and cuts median pass time from 128 → 83 sessions.

PortfolioRisk / TradePass (1y)Bust (1y)Median DaysPass ≤60d
Secondary Pre-Registered Forward Test

Gold Event Clock — MGC FOMC-Minutes & NFP Eve Sleeve

Starts Tuesday, November 17, 2026 (FOMC minutes eve): long 1 MGC from US afternoon of FOMC-minutes / NFP eve to 03:00 ET (+17 bp/night historical, n = 97). Review after 20 live trades.

Billing Guardrail

$40 Seed Credit & $35 Hard Cloud Billing Cap

Dedicated GCP Enterprise project capped by a hard Cloud Billing Budget alerting at 25% / 50% / 85% / 100% of $35.00, running 100% scale-to-zero containers with zero idle compute burn.

Current Burn: $0.01 used Hard Budget Cap: $35.00 (of $40.00 credit)
ServiceConfigurationEst. $/mo
GitHub Pages (stockmarketelephant.com)Static UI + Automated CI Guardrails$0.00
BigQuery (sme_trading, 6 tables)10 GB storage + 1 TB query free tier$0.00
Cloud Scheduler (2 weekday triggers)GCP free tier (≤3 jobs/mo free)$0.00
Artifact Registry (sme-agents)Cleanup policy: keep latest 3 images$0.08
Cloud Run Service (sme-trading-agent)min-instances=0 (scale-to-zero)$0.65
Gemini Decisions API (gemini-decision-1)0 output tokens · calibrated setup rubric$0.30
Gemini 4 Argon (preopen + eod ops)2 scheduled runs / trading day$1.00
Projected Monthly Total~19 months runway on $40 credit~$2.03
Keyless GitHub → GCP Infrastructure

Provisioned GCP & GitHub Architecture

ResourceConfigurationState
Stock Market Elephant — Automated Trading System HQ on Google Cloud & Gemini Enterprise. Educational build log, not financial advice. ← Main Showcase · Archived Blog (Sunset) · $20k Scoreboard