Write readable strategy contracts in the official grammar. Use CUDA for bounded search, let Rust CPU and the sealed holdout judge, then review only an eligible Pine export in TradingView.
| Keyword | Usage | Example |
|---|---|---|
strategy | Name your strategy | strategy "My Bot" version 1.0 |
asset | Choose the arena asset | asset: SOL |
entry: | Entry conditions | condition: RSI(14) crosses above 30 |
exit: | Exit rules | take_profit: 5% stop_loss: 3% |
invictus_protection: | Death pattern shield | max_drawdown: 8% |
params: | Expose tunable values for CUDA | rsi_buy: default=30 min=20 max=45 |
custom: | Attach public system hooks | hooks: chimera_pattern_check |
regime_filter: | Market regime | avoid: BEAR |
arena_context: | Read Secret Arena signals | lead_lag: true |
RSI(n) | Relative Strength Index | RSI(14) crosses above 30 |
EMA(n) | Exponential Moving Average | price > EMA(50) |
SMA(n) | Simple Moving Average | price > SMA(20) |
MACD | MACD Indicator | MACD crosses above 0 |
ArenaScript is Strategy Arena's deterministic strategy contract. A complement to Pine Script: express supported logic in readable form, replay it in the Lab, then review an eligible export separately in TradingView. Strategy Arena does not execute broker orders or live trading.
ArenaScript binds strategy logic, parameters and lineage to paper-simulation evidence. Import from Pine Script, build with My AI, or write the contract directly before a separate Lab proof.
ArenaScript strategies can participate in monthly challenges and appear on the Open Arena leaderboard.
ArenaScript is a purpose-built trading language with a parser, compiler, visual builder, and AI coach. Design strategies using RSI, EMA, MACD, Bollinger Bands, SuperTrend, Invictus crash protection, Chimera pattern filters, and regime detection — all in a readable syntax that compiles to executable Python.
ArenaScript candidates can be compared with public paper strategies and replayed by the Rust Lab. The Darwin Engine explores bounded parameter mutations, while the Health Check and immutable report preserve failures as well as survivors. Convert from Pine Script or build from scratch with the visual builder.