Workspace /Strategy Testing Studio
Local device workspace
Your strategy. Your evidence.

Backtest Studio

Write supported rules, select cached history, and inspect every simulated fill.

Locked
TRUSTED PYTHON ONLY. Your source, cache and results remain in this browser profile. No server account or cloud sync. Genuine Futures results are diagnostic, with funding and historical exchange filters unverified.
⌘

Strategy Sandbox

Python source · Trusted-code only · Isolated browser worker

PYTHON / 1 · TRUSTED ONLY
Python strategy source
Browser worker · not an OS sandbox
Conditional entries & exitsFixed / ATR SLTrailing & breakevenPartial reductions
Python strategy API & execution conventions

Paste Python defining on_bar(ctx), with WARMUP_BARS = 2…501. Standard-library imports, custom indicators and ctx.state run in a separate opaque-origin WebAssembly worker. Only run code you trust. Browser memory cannot be hard-limited: hostile code can freeze or crash your tab. No server secrets or other users’ files are supplied. JavaScript is not supported.

Read ctx.history, ctx.close, ctx.position, ctx.account; use ctx.sma(period), ctx.atr(period), or calculate your own indicators. Return ctx.enter("LONG" or "SHORT", stop_fraction=…, stop_distance=…, or stop_price=…, and optional target_fraction/target_distance/target_price). Return ctx.exit() or ctx.manage(stop=…, target=…, reduce_fraction=…) for custom position management. Use Decimal strings/Decimal arithmetic for financial thresholds.

All observations are completed candles. Entries, reductions and stop changes execute no earlier than the next open; old protective stops remain active during the trigger candle. Stops cannot loosen. reduce_fraction applies to remaining quantity. Ordinary Spot SHORT is rejected. Saving/testing never activate trading. No server worker, orders or strategy activation. Checkpoints preserve ctx.state, completed histories and serializable global data. User-defined class state, clock/random/OS/JS module state, mutable closures, mutable function defaults, native handles and unpicklable state cannot be safely resumed and are explicitly rejected at a checkpoint. A device may pause background tabs; keep the page visible. Strategy recovery bytes are restored only inside the opaque strategy worker, never the financial interpreter.

↗

Backtest Configuration

Reuse verified 1-minute historical cache

Coverage is checked before every replay.

Static watchlist, not live rankings
Historical period

Periods require complete history plus strategy warm-up. Never shortened.

Execution & risk assumptions

Fully reserved 1× capital; 25% allocation cap, 5% aggregate planned risk. Coarser evaluation also means coarser execution; no hidden 1m reconstruction.

▦Verified cache only · No automatic market substitution

Preparing browser runtime…

Foreground browser worker · No orders · No activation
No running test

Results overview

A completed backtest is required. No illustrative profitability.

MODELED EXECUTION
NET EQUITY CHANGE
—
—
ENDING EQUITY
—
—
WIN RATE AFTER COSTS
—
—
MAX DRAWDOWN
—
Sampled equity, not tick precision

Saved tests

This browser profile only · Not account authentication or cross-device sync

No saved tests on this browser profile.

Historical cache

Device-local OPFS / IndexedDB · Source hashes retained · Not cloud backup

Available: genuine November 2025 Binance USD-M Futures 1m history. Full-month source coverage is not a claim that every requested replay fits the current engine limits. No 4-year archive is bundled. Each device downloads its selected compressed chunks once.

Trade detail