Paper only. Open the studio →
rutiq

// Docs

Rules you can read. Prices you can prove.

Rutiq is a paper-only studio for rule-based trading agents on Robinhood Chain. This page explains exactly how a rule decides and what can be checked.

How it works

Prototype
  1. Pick a market (a Chainlink feed on Robinhood Chain) and a bar length: 1 hour, 4 hours or 1 day.
  2. Write the entry and the exit: up to one condition each, plus stop-loss, take-profit, size per entry, a daily entry limit, a schedule of UTC hours and weekdays, and how old a price may be before the agent ignores it.
  3. Backtest it in the studio on the feed's full round history: every bar is decided with the same integer math the contract uses.
  4. Run it on paper: from the next bar close on, the agent decides on live rounds and writes why it acted or waited.
  5. Optionally commit its decisions to the on-chain log, which re-checks each one before writing it.

Conditions

ConditionWhat is comparedCloses used
Short average crosses above / below longThe short simple moving average of closes moves from at-or-below to above the long one on this bar (or the reverse).long + 1 closes
Close above / below its averageThis bar's close against the simple moving average of the last N closes, this one included.N closes
Change over N bars ≥ / ≤ x %(close − close N bars ago) ÷ close N bars ago, in basis points, against your threshold.N + 1 closes
Close above / below a priceThis bar's close against a fixed price in the feed's units (USD, 8 decimals).1 close

Order at each bar: outside the schedule or price too old → wait. In a position: stop-loss, then take-profit, then the exit rule. Flat: the daily entry limit, then the entry rule. One position at a time, long only. Exits are never blocked by the daily limit. Look-backs are capped at 48 bars.

How a decision is checked

A bar's close is proven by two reads of the feed: round r was published at or before the bar end, and round r + 1 was published after it (or r is still the latest round). The site shows the round of every close and a “Re-read on chain” button that runs exactly this test from your browser.

A commit to RutiqDecisionLog carries the rule set number, the bar end and the round ids of every close the rule needs. The contract proves each close, recomputes the conditions, the stop, the take-profit, the schedule, the stale-price limit and the daily limit from its own record of the paper account, and accepts the commit only if the action and the reason match. It then updates the paper cash and units on chain.

What it does not prove: that every bar was committed (skipped bars are counted on chain and shown), that the rule is any good, or that a real trade could have filled at that price. Bars that closed before the rule was registered cannot be committed, so a backtest cannot be passed off as a live record.

Fills and costs

Fills happen at the proven close of the decision bar. One setting, “fee + slippage”, is charged on every buy and every sell. A buy spends your size percent of the paper cash; a sell closes the whole position.

Cash is counted in millionths of a dollar and units in 18 decimals; divisions round down, on the site and in the contract alike, so both arrive at the same numbers (checked on 991 test bars).

The real world is harsher: a market order would fill after the close, spreads widen outside the US session, and depth is limited. Set the fee higher than you think.

Risks and limits

Is any real money involved? +

No. Rutiq is paper only: backtests and paper agents use virtual cash, and the on-chain log records decisions, not trades. There are no deposits, no vaults and no orders. Trading with real funds is a later stage and is not built.

Where do the prices come from? +

From Chainlink price feeds on Robinhood Chain. Every bar close is the latest round a feed had published when the bar ended, with its round number, so anyone can re-read it with getRoundData. Stock feeds follow the US session and go quiet outside it; the rule's stale-price limit keeps it from acting on an old price.

Does a good backtest mean the rule makes money? +

No. A backtest replays the past. Markets change, a short window can flatter any rule, and real trades face spreads, depth and delays that a fee setting only approximates. Simulated results never guarantee profit and are not advice.

What does the on-chain log actually prove? +

That each committed decision is the one the rule makes at that bar, at prices the contract re-read itself. It does not prove that no bar was skipped (skips are counted on chain and shown), that the rule is good, or that anyone could have traded at those prices.

What are stock tokens? +

Tokens on Robinhood Chain that track a share's price. They are not the shares themselves. Rutiq only lists a stock token after checking on chain that it is the official kind (proxy code, beacon, supply, symbol), and it is not affiliated with Robinhood or any issuer.

Do I need $RUTIQ? +

No. Everything here works without it. $RUTIQ is planned as compute credits for longer tests and more paper agents once those services exist; it has no other job and no promise of value.

Planned, not built

Concept
  • Trading with real funds, as a later stage, only after the paper stage has proven itself and an independent review of whatever holds funds.
  • $RUTIQ as compute credits for longer backtests and more simultaneous paper agents, once those services exist.
  • More markets and condition types (RSI, ranges, combined conditions).

Glossary

Backtest
Running a rule over past bars to see what it would have done. A replay, never a forecast.
Paper trading
Running a rule forward on live prices with virtual cash. Nothing is bought or sold.
Chainlink round
One published price of a feed: round id, answer and the time it was published, readable on chain forever.
Bar close
The price at the end of a bar: the latest round published at or before that moment.
Moving average
The plain average of the last N bar closes.
Stop-loss / take-profit
Sell when the close falls / rises a set percent from the entry price. Checked at bar closes only.
Drawdown
The largest fall of equity from a previous high, in percent.
Buy and hold
Buying at the first bar of the window with all the cash (same fee) and keeping it to the end.
Decision log
The list of what the rule decided and why, bar by bar; on chain when committed to RutiqDecisionLog.