Skip to main content
Strategy Arena language layer

ArenaScript Protocol

ArenaScript is the shared readable layer for the whole arena: native strategies, canonical monsters, CUDA optimizers, GPU contributors, MCP agents and TradingView exports.

Core protocol · Strategy Arena speaks ArenaScript. Every survivor is Arena Verified.
See the outcome World Arena is where the protocol becomes a spectacle. Hostile markets, survivors, deaths and real alpha against Buy & Hold. HostilityMost Hostile MarketsWhich market sends strategies to Hospital? StoriesArena StoriesCitation-ready market narratives. EvolutionMonster LogCUDA survivors returned as ArenaScript.
Important boundary ArenaScript is the engine layer, not the spectacle. Users should see winners, deaths and hostile markets first. Builders can open the contract when needed.
CUDAMutation engineArenaScript in, optimized ArenaScript out.
World ArenaPublic spectacleMarkets become battlefields, strategies try to survive.
TradingViewDistribution layerOnly validated contracts deserve export.
01
Arena
Native strategies, scalpers and canonical monsters expose a readable ArenaScript contract.
02
Params
Each script declares tunable params: ranges for CUDA and future GPU clients.
03
CUDA
Family optimizers search candidates and return the same ArenaScript, tuned.
04
Verified
Survivors are arena-tested and written into the append-only evolution log.
05
Export
Arena Verified scripts can carry verification metadata into Pine v5, MCP and GPU clients.
5canonical monsters exposed
1shared language contract
JSONLappend-only evolution log
Pine v5verified export path
The ArenaScript Bus
One public language, many engines behind it.
Native ArenasBTC, metals, oil, indices and World Arena strategies expose comparable scripts.
MonstersInvictus, Meta, Leviathan, Chimera and Hydra publish public contracts.
CUDAOptimizers tune params and return the same ArenaScript, not hidden code.
GPU ClientsFuture Rust/browser workers can receive chunks and submit candidate params.
MCP AgentsExternal AIs generate, validate and repair ArenaScript through tools.
TradingViewScripts export to Pine with an explicit EXACT or PARTIAL status.
ArenaScriptthe language
CUDAthe evolution
Hospitalthe selection
Arena Verifiedthe label
World Arenathe spectacle
TradingViewthe distribution
TradingView Starter
Choose the account path. Prove the strategy separately.
Your first chart and price alert do not require the Lab. Strategy Arena proof remains required before trusting or exporting a strategy.
Partner attribution is for first-time users and web purchases only. Strategy Arena may earn a commission on eligible purchases; starting with a free account needs no payment.
I have never had an account · Start free I already have an account Check a strategy
More TradingView paths
Evidence-gated Pine review

Prompt For External AIs

Give this to Grok, Claude, DeepSeek or any MCP-capable assistant when you want it to produce ArenaScript. The assistant does not need Strategy Arena source code.

Connect to Strategy Arena MCP:
https://strategyarena.io/mcp/sse

Call arenascript_reference first.
Then generate an ArenaScript strategy for this idea: [describe the idea].
Call validate_arenascript and correct the script until it is valid.
Call backtest_arenascript.
If the script deserves more testing, call monte_carlo.
If working on an existing monster, call list_arenascript_monsters, optimize_arenascript_monster, then poll get_arenascript_optimization_status.
Before export, call inspect_pine_export_capability and read conversion_status: EXACT (FULL_PINE) or PARTIAL (PARTIAL_PINE, unconverted lines listed).
Only after validation, call export_to_tradingview.

Never ask for Strategy Arena source code or private internals.
Never output Python or hidden trading logic. ArenaScript only. Preserve fee/slippage, drawdown and no-financial-advice caveats.

Why It Matters

Before, every arena component could become a special module. That does not scale. ArenaScript gives the platform one public contract for rules, params, optimizer family and verification result.

The native implementation can stay in Python, ML or CUDA. The public surface stays ArenaScript: readable, testable, optimizable and exportable.

True Monsters

invictus exposes the immune risk gate.

meta_intelligence exposes the regime router.

leviathan exposes regime and conviction voting.

chimera exposes pattern veto and confirmation gates.

hydra exposes multi-timeframe confluence.

Systems Also Speak It

nasdaq_scalping optimizes ScalpForge and GPU War templates.

invictus_risk_gate tunes immune thresholds and ATR exits.

edge_fund_allocator tunes portfolio weights and rebalance controls.

ml_gate_threshold tunes ML threshold, RSI ceiling and ATR exits.

Arena Verified

An Arena Verified survivor has passed through the optimizer and the arena verification step. The result is written to data/monster_evolution_log.jsonl with params and metrics.

The Pine export follows the Lab engine semantics (same indicators, same exit order, 0.1% fee per side, no slippage). The export contract is explicit: EXACT / FULL_PINE when every rule is converted, PARTIAL / PARTIAL_PINE with the list of lines the Pine does not execute. The header cites a result only when real evidence is attached (a sealed leaderboard run whose script is identical, or a server-side optimisation job, labelled as such).

Protocol Boundaries

MCP, TradingView, browser GPU and Rust clients are consumers of ArenaScript. They do not need private source access.

The endpoint shape is stable: ArenaScript in, family optimizer, ArenaScript out, verified log event. The public spectacle stays World Arena: hostile markets, survivors, deaths and champions.

Open Monster Registry Open Monster Evolution Log Open ArenaScript Editor ArenaScript v1.2 Grammar Open ScalpForge Evolution Log API