cubicle.script · a programming language for traders

Write your strategy as a program. Prove it before it trades.

cubicle.script turns a trading idea into one small state machine: what you watch, when you arm, when you enter, how you leave. A model writes it with you in the Cubicle studio, and the language refuses anything it cannot run, cannot measure, or that could see the future. Then every claim is replayed on real bars and graded on bars it never saw.

Free to write, run and replay on the time compressor · BTC, ETH, SOL, NQ, ES, YM · nothing trades until it is graded

For traders

Describe a setup, watch it run, copy an agent with a record. Plans from $20 for 30 days.

For desks

Deterministic runs, a per-bar audit trail, a holdout gate, sealed IP and an MCP server.

The Cubicle spirits: six roles of the studio, the scout, the quant, the oracle, the veteran, the executor and the scalper
The Cubicle spirits: the six roles you work with in the studio · live deck, captured 14 Nov 2026
Plans

Writing and time travel are free. Pay for the decisions, the signals and the copy.

Every plan runs for 30 days and is paid on-chain in USDG on Robinhood Chain. The prices below are read live from the venue’s catalogue.

Start here
$0free

build strategies in the studio, test them on real market history, live charts, and every idea graded before it trades

starter-20
$20/ 30 days
12,000 Jev decisions

12,000 Jev decisions per 30 days, the sealed signals and copying a listed agent inside your own caps

pro-50
$50/ 30 days
30,000 Jev decisions

30,000 Jev decisions per 30 days; the deck asks /plans/authorize before a decision and /plans/settle after

premium-99
$99/ 30 days
60,000 Jev decisions

60,000 Jev decisions per 30 days (sonnet units return the day that lane answers, _NO_UNWIRED_UNITS_v1_)

What you get

One studio, five rooms. Every preview below is the live product.

01 · Design and write

Say the setup. Get a script that compiles.

You describe the idea in your own words. A model fills a typed spec, code assembles the cubicle.script, and the validator checks it as you type. Each new version opens beside the last with what changed, and you accept it or hand it back.

For traders
No code needed. Change any number in the Setup fields without touching the script.
For desks
Every version is hashed and chained to the one before it. The script's hash is the strategy.
Open the studio →
The Cubicle studio: the script editor with a cubicle.script open, checked as you type, beside the build and run rail
The studio: the script editor beside the build and run rail · live deck, captured 14 Nov 2026
02 · Execute, time-travel, grade

Run it on real bars. Then grade it on bars it never saw.

The reference runner steps the machine bar by bar on the venue's own candles and draws every state, entry and exit on the chart. The Time Compressor replays any window at 60×, 600× or 6,000× with the future hidden. Every rehearsal is compared with 200 random entries under the same exits, and before anything trades the gate grades it on the 30% of history it never saw.

For traders
Replay yesterday's New York open and watch your entries land. You find out a setup does not work before it costs you anything.
For desks
Per-bar frames record each condition and the values it compared. Holdout, 8 bps a side and three broken copies that must fail run the same way for the house and for you.
See it on the chart →
The chart: the Time Compressor rail over twelve hours of tape, two strategies drawing their own lanes on BTC
The chart: the Time Compressor rail, two strategies drawing their own lanes · live deck, captured 14 Nov 2026
03 · The agents

Six roles in one studio. Ask any of them.

The scout reads the market, the quant writes the script, the oracle keeps score of its calls, the veteran judges before money does, the executor trades on the venue under caps, and the scalper works the fast lane. Ask any of them in the studio, and the answer says which one spoke.

For traders
Ask in plain words. The answer comes with the chart it read and the facts it used.
For desks
Every lane is metered and logged. The model never moves a strategy forward; code does.
Meet the spirits →
The studio's lanes: Quant, Scout, Analyst, Strategist and Researcher, each naming the model behind it, and Jev, the judge
The studio's lanes: every answer names the model that gave it · live deck, captured 14 Nov 2026
04 · List and copy

Listing is free. The record does the talking.

Pick one of your desks and list it on the board in one act. Agents are ranked by their fills on the venue, not by their pitch, and anyone on a plan can copy one inside their own caps. No simulated actor is ever ranked.

For traders
Follow an agent with a record from $20 for 30 days, inside caps you set.
For desks
Listing opens the record and the fills, never the conditions. Unlist any time.
See the board →
LIST YOURS, free: pick one of your desks and list it on the board in one act
LIST YOURS: one of your desks, listed in one act · live deck, captured 14 Nov 2026
05 · Run it with money

Your money stays in your accounts. Practice first, then real USDG.

Practice on devnet test money for free, or run on real USDG on Robinhood Chain. Every spend sits inside a mandate you can see. The contracts have not been externally audited, and the vault says so in plain words.

For traders
Put in only what you can afford to lose. Test money is always labelled test money.
For desks
Caps per lane, mandates on a metered stream, step-up checks on every withdrawal.
Open the vault →
The vault: practice money on devnet or real USDG on Robinhood Chain, with the unaudited-contracts warning in plain words
The vault: practice or real money, with the audit status stated · live deck, captured 14 Nov 2026
Time travel · the time compressor

Every strategy carries the record the time compressor measured.

The time compressor replays the market’s real bars through the same runner that trades live. Live trading is the time compressor at speed 1, so a script replayed over a window places exactly the trades it would have placed had it been running then, bar for bar. Measured or deployed, the trades are the same, and the run’s fingerprint proves it.

Measured on the time compressor · BTC 1h

BTC: the ten day breakdown, 1 h (adopted from Padysak and Vojtko)

the Bitcoin trend at its 10 day extreme, turned around for a falling market: the close breaks the lowest low of the last 10 days while the 10 day average falls: short, hold one day, stop 2 ATR above

+6.0%
net of 3 bps a side · 2025-01-01 to 2026-11-14
Trades
56
Won
38%
Vs a random entry
+0.12 R
  • 202528 trades, 9 won, −11.1%
  • before12 trades, 6 won, +7.8%
  • first fall6 trades, 4 won, +12.5%
  • between3 trades, 0 won, −2.8%
  • latest fall7 trades, 2 won, −0.5%
The fingerprint: replay it yourself

Script eb2cff45a8862948, 16,392 BTC 1h bars from the Taifoon tape, cubicle-script/0.2.0. Replay it and the frames hash comes out the same: a5ca3a7cbe22f793.

Open it in the studio →
Measured on the time compressor · BTC 1h

BTC: the bear rally fade, 1 h (adopted from Connors RSI 2)

Connors' 2 period RSI turned around for a falling market: under the 200 average, a bounce that pushes RSI(2) above 90 is sold and covered when the close is back under the 5 average

−29.4%
net of 3 bps a side · 2025-01-01 to 2026-11-14
Trades
364
Won
58%
Vs a random entry
+0.04 R
  • 2025177 trades, 90 won, −28.4%
  • before78 trades, 47 won, −3.4%
  • first fall24 trades, 19 won, +4.2%
  • between48 trades, 31 won, −3.0%
  • latest fall37 trades, 23 won, +1.2%
The fingerprint: replay it yourself

Script 1e1766ed35de971e, 16,392 BTC 1h bars from the Taifoon tape, cubicle-script/0.2.0. Replay it and the frames hash comes out the same: 5a65c0bc6f071ea5.

Open it in the studio →
Measured on the time compressor · BTC 1h

BTC: the liquidity sweep of equal highs, 1 h (the chart's pools, Turtle Soup)

the studio chart's liquidity pools as they form: when a bar trades above equal highs (a buy-side pool touched twice) and closes back below it in a falling market, short it; stop above that bar, target the next sell-side pool below

+5.1%
net of 3 bps a side · 2025-01-01 to 2026-11-14
Trades
43
Won
30%
Vs a random entry
+0.27 R
  • 202517 trades, 4 won, −2.9%
  • before13 trades, 3 won, +1.0%
  • first fall6 trades, 3 won, +1.5%
  • between3 trades, 1 won, +2.4%
  • latest fall4 trades, 2 won, +3.1%
The fingerprint: replay it yourself

Script 1b451bc64c142b3b, 16,392 BTC 1h bars from the Taifoon tape, cubicle-script/0.5.0. Replay it and the frames hash comes out the same: 0f7cf41294fe898e.

Open it in the studio →
Measured on the time compressor · NQ 5m

NQ: the opening range breakdown, 5 min (adopted from Zarattini and Aziz ORB)

the short half of the QQQ opening range breakout paper: the first 5 min bar of the New York session closes red, the 4 day average falls, a later bar closes under that bar low: short, stop at its high, flat at 15:55

+12.8%
net of 1 bps a side · 2025-01-01 to 2026-11-13
Trades
90
Won
41%
Vs a random entry
+0.44 R
  • 202542 trades, 17 won, +4.4%
  • 2026 before the fall39 trades, 17 won, +3.3%
  • latest fall9 trades, 3 won, +5.1%
The fingerprint: replay it yourself

Script 693b66d310fa1206, 131,453 NQ 5m bars from the Taifoon tape, cubicle-script/0.2.0. Replay it and the frames hash comes out the same: 4c94a225f2d884f4.

Open it in the studio →

Every trade is counted, losing ones included. Each window says what a random entry of the same hold did. Copying opens on each strategy’s first live fill. A record of the past is not a promise about the next trade.

The language

One pattern for every strategy. Small enough to read, strict enough to trust.

A cubicle.script is a finite state machine over bars. No loops, no recursion, no randomness, no wall clock: the same script on the same bars gives the same trades, every time. Seven blocks, each with one job.

paramsevery knob, typed and bounded, with a default and a unit
fieldsper-bar expressions over the bars, the params and the built-ins
varsthe only memory, changed only by a transition's set
states + transitionsthe machine; an edge fires when its gate is true, the first declared edge wins
limitswarm-up, cooldown, trades per session, flat-at: they stand above the machine
logsthe only lines a run may write, typed
showhow each state and field draws on the chart
# rsi-dip-buyer.yaml · an example, not advice · checked by cubicle-script 0.1.0
cubicle.script: 1
name: rsi-dip-buyer
market: BTC
tf: 5m

params:
  rsi_period: { default: 14,    min: 2,     max: 50,   unit: bars }
  oversold:   { default: 30,    min: 5,     max: 50 }
  stop_pct:   { default: 0.006, min: 0.001, max: 0.05, unit: "%" }
  tp_rr:      { default: 2,     min: 0.5,   max: 6,    unit: R }

fields:
  rsi:   rsi(close, rsi_period)
  trend: close > ema(close, 200)

states: [Warmup, Armed, InTrade]
initial: Warmup
canonical: { Warmup: Warmup, Armed: Armed, InTrade: InTrade }

transitions:
  - { from: Warmup,  to: Armed,   when: { all: [warm] } }
  - { from: Armed,   to: InTrade, when: { all: [trend, "cross_over(rsi, oversold)"] },
      do: [{ order: buy, at: close, stop: "entry * (1 - stop_pct)", target: "entry + tp_rr * (entry - stop)" }] }
  - { from: InTrade, to: Armed,   when: { any: [target, stop] } }

limits:
  warmup: "200 bars"
  cooldown: 3 bars
  max_bars_in_trade: 96

logs:
  entered: { on: "Armed->InTrade", say: "long at {entry}: stop {stop}, target {target}, rsi {rsi}", fields: [entry, stop, target, rsi] }

$ cubicle-script validate rsi-dip-buyer.yaml
rsi-dip-buyer.yaml: 0 error(s), 0 warning(s), 0 info; budget: warm-up 200 bars, memory 1.8 KB, 10 nodes/bar, window 200 bars (ok)

Lookahead is impossible by grammar

x[n] reads n bars back, never forward. A script that peeks at an unclosed bar does not compile.

Every window is bounded

Each lookback is a literal or a param with a max, so the warm-up and the memory budget are computed before a single bar runs.

Orders are declared, fills are the engine's

You say buy, where, stop and target. The engine decides the fill and applies fees and slippage from the run's terms.

The script's hash is the strategy

Change one number and it is a new script with a new hash. A run is a pure function of script, market, timeframe, window and terms.

If you can explain your setup in a sentence, you can write it in cubicle.script.

Anti-hallucination by construction

The model writes. The language checks. The bars decide.

A model is good at turning your sentence into structure and bad at admitting what it does not know. So in the studio it never types syntax: it fills a typed spec, code assembles the script, and the validator either accepts it or names exactly what is wrong. Up to four repair rounds, then anything the language cannot express comes back to you as a named gap, never as a guess.

IT PEEKED ONE BAR AHEAD
fields:
  next_close: close[-1]

$ cubicle-script validate peek.yaml
peek.yaml:6:21: error C040: [-1] reads a bar that has not closed yet: write x[N] for N bars ago
peek.yaml: 1 error(s), 0 warning(s), 0 info
IT INVENTED AN INDICATOR
fields:
  st: supertrend(close, 10)

$ cubicle-script validate made-up.yaml
made-up.yaml:14:10: error C021: unknown function `supertrend`
  (functions: ema, sma, rsi, high, low, range, atr, vwap, shift, stdev, zscore, streak,
   highest, lowest, cross_over, cross_under, abs, sign, min, max, clamp, floor, ceil, ln,
   sqrt, wma, rma, hma, dev, change, mom, roc, cum, barssince, valuewhen, pivot_high,
   pivot_low, prev, nz, na, not, if, exp_move, stretch, range_regime, trades_closed,
   wins_last, sum_r_last)
made-up.yaml: 1 error(s), 1 warning(s), 0 info

Verbatim output of the reference runner, cubicle-script 0.1.0.

Facts, not memory

The model is handed the bars, the vocabulary and your words on every turn. It is never asked to remember a price.

Every condition, every bar

A run records each gate's truth and the values it compared, bar by bar. Ask why it entered at 14:32 and the answer is a row, not a story.

A grade it cannot argue with

The verdict comes from bars the script never saw, against copies of itself that were broken on purpose. Only PROVEN trades.

Cubicle keeps its own book closed

You never read our machines. Nobody reads yours.

The house runs its own agents on the same venue you do. What you see of them is what anyone sees of any machine on Cubicle: its shape, sealed, and its record, fill by fill. The conditions, the thresholds, the words that make it work stay with whoever wrote them. The same seal covers every script you write: it is yours, it runs under your name, and it is only public if you list it.

What is public

The shape (how many states, how many transitions, sealed: true), the markets, the fills and the record.

What is never public

The conditions and thresholds of a machine, unless its own author publishes them. House machines are not even named to people without access.

Who decides

You. A script you write is private by default. Listing it on the board is one free act, and so is taking it off.

For trading desks

Your research pipeline, audited end to end. Your IP stays sealed.

Connect your own agents and tools over MCP or the API. The studio’s tools are the same ones your analysts use in the browser, and every call goes through your key, your caps and your audit trail.

# the studio from any MCP client: Claude, ChatGPT, Cursor, your own agent
script_validate   check a script, every diagnostic with its line
script_rehearse   run it on real bars, per-bar frames back
forge             turn a sentence into a script
grade             send it to the reader gate
chart_state       what the chart shows, as data
strategies        your scripts and their versions

Determinism

A run is a pure function of script, market, timeframe, window and terms. Re-run it next year and get the same trades.

Controls

Holdout, a cost model and broken copies that must fail. Caps per lane and step-up checks on withdrawals.

Your own key

MID and MAX plans include an API key; usage is metered per key and readable at any time.

Talk to us about a desk: info@algotrada.com.

FAQ

Straight answers

Do I need to know how to code?
No. You describe the setup in plain words and the studio writes the script with you. You can read every line it writes, and change any number from the Setup fields without touching the script.
How is this different from asking a chatbot for a strategy?
A chatbot answers in prose and can invent an indicator, a price or a result. Here the model can only fill a typed spec; the validator refuses what does not exist, lookahead does not compile, and the result is whatever the bars say, graded on bars the script never saw.
Is this live trading?
Writing, running and replaying on the time compressor are free and touch no money. A script trades only after the reader gate grades it PROVEN, and then only under your name and inside your caps. Until a vault row says mainnet, every figure is devnet test money and is labelled that way.
Which markets?
BTC, ETH and SOL, and the NQ, ES and YM index futures, on the same verbs and the same clock. A script written for one market runs on the next unchanged.
Can someone copy my strategy?
Not its words. A script is private by default. If you list it, the board shows its shape and its record; the conditions stay sealed unless you publish them yourself.
Can I use my own agent?
Yes. The studio's tools are an MCP server: validate, rehearse, forge, grade and read the chart from Claude, ChatGPT, Cursor or your own code.
What does it cost?
Writing, running and replaying on the time compressor are free. Plans start at 20 USDG for 30 days and add Jev decisions, signals, the pattern library and copying a listed agent.
nothing trades until it is graded
Start

Your first script takes a sentence.

Create an account with your email, open the studio and describe your setup. You will have a checked script, a run on real bars and its record on the time compressor, measured against luck, before you decide anything else.

Building a desk or a fund on Cubicle? Email info@algotrada.com.

cubicle · by algotrada

Litepaper · Whitepaper · Roadmap · Landscape · built on Taifoon rails

Algorithmic trading involves risk. Backtest, forward-test and hypothetical results are labelled as such and are not predictive of future performance. © 2026 AlgoTrada Technologies.