Skip to content
Clause

// 02Build

Build a bot.
One sentence in.

One sentence in, readable rules out. Change any value, test it on the chain’s own history, then save it as a paper bot. Paper and backtests are free.

2 · The rules, as they runexample
WHENmarket open,
IFNVDA ≤ today
THENbuy of NVDA
EXITsell at
EXITstop at added by us
LIMIT open at most
LIMITonce a day

Tap a highlighted value to change it. “Added by us” lines are defaults you did not write: keep, change or remove them.

Rule JSON
{
  "v": 1,
  "name": "Red Day Buyer",
  "when": {
    "on": "timer",
    "every_s": 60
  },
  "target": {
    "kind": "stock",
    "symbol": "NVDA"
  },
  "if": [
    {
      "v": "stock.change_today_pct",
      "op": "<=",
      "x": -3
    },
    {
      "v": "market.session",
      "op": "==",
      "x": "regular"
    }
  ],
  "buy": {
    "usd": 50
  },
  "exits": [
    {
      "if": [
        {
          "v": "position.pnl_pct",
          "op": ">=",
          "x": 2
        }
      ],
      "sell_pct": 100,
      "reason": "take_profit"
    },
    {
      "if": [
        {
          "v": "position.pnl_pct",
          "op": "<=",
          "x": -3
        }
      ],
      "sell_pct": 100,
      "reason": "stop_loss",
      "added": true
    }
  ],
  "limits": {
    "max_open": 1,
    "once_per_day": true
  }
}
3 · Backtest on chain data

See what these rules would have done.

4 · Save it as a paper bot

Paper bots run at live prices with no funds, in public. Sign once with your wallet (free, moves nothing) so the bot is yours. Going live, with its own vault, starts from the bot’s page.