Bots
six strategies that run on your server.
DCA, Grid, Trailing buy, Rebalance, Indicator and Signal bots, with presets, your own templates and a backtest on past candles. Bots trade the user's own exchange account, 24/7, with the app closed.
01Create, start, stop
- Bots, New bot. Pick a strategy, or start from a preset or one of your templates.
- Choose the account and market. A short bot needs a futures market. Trailing and Rebalance bots run on spot.
- Fill in the parameters. The wizard shows an order plan or a grid preview.
- Optional: Max loss for this bot. The bot stops itself when its realised loss reaches this amount.
- Backtest it (below), then slide to start. A live account asks "Start a live bot?" first; a testnet or paper account says that orders are simulated or go to the testnet.
On the bot's page: Pause, Start (resume), Stop (closes nothing unless you choose to close the position), the log of every action, its statistics, a health badge, and Explain when the AI assistant is set up.
On a live account a bot places real orders with real funds, around the clock. Try every configuration on a paper or testnet account first. A backtest or a preset says nothing about future results.
02Rules every bot follows
- Each bot has its own lock, and its state is saved before each order is sent with a deterministic client id, so an order is found again after a crash.
- Cancels settle before new orders are placed.
- Order amounts are rounded down to the market's step; an order below the exchange minimum is skipped with a warning in the log.
- A bot never sells more than its fills delivered.
- While the kill switch is on, only risk-reducing orders pass: spot sells and futures reduce-only orders.
03DCA bot
Opens a base order, adds safety orders as the price moves against it, and takes profit from the average price.
| Setting | Meaning |
|---|---|
| Side | Long, or short on futures |
| Base order, safety order | Sizes in the quote currency |
| Max safety orders | 0 to 25 |
| Price deviation | % move before the first safety order |
| Step scale, volume scale | How the distance and the size of each next safety order grow |
| Take profit | One % target from the average, or take-profit steps: up to 10 steps, each priced from the current average, sizes adding up to 100 %. When the first step fills, the remaining safety orders are cancelled. |
| Stop loss | Optional % |
| Cooldown | Seconds to wait between cycles |
| Start rules | Optional. Each cycle opens only on a newly closed bar on which the rules hold (timeframe 5m to 1d, default 1h), using the rule builder. |
04Grid bot
Places buy and sell orders on levels between a lower and an upper price and earns from the price moving between them.
| Setting | Meaning |
|---|---|
| Lower, upper | The price range |
| Grid lines | 2 to 200 |
| Mode | Arithmetic (equal price steps) or geometric (equal % steps) |
| Direction | Neutral, long or short (short needs futures) |
| Investment | Quote amount for the whole grid; leverage on futures |
| Stop below, stop above | Optional: stop the bot if the price leaves the range |
Trailing up
For neutral and long grids. When the price reaches the top level, the grid moves up by as many levels as needed to put the new top above the price: it cancels the lowest buys, buys one level at market and places that sell at the new top. A move never drops a level that still holds coins; it waits and logs why.
Infinity grid
Long only, with a lower price, a step % (0.1 to 50), a size per level and a starting investment. It buys the starting inventory at market, then always keeps one sell a level above and one buy a level below the last fill, with no upper bound. There are no buys below the lower price.
05Trailing buy bot
A one-shot buy on spot that waits for a rebound. Once the price is at or below the activation price (at once without one), it follows the lowest price and buys at market when the price rebounds by the entry trail %. With an exit trail % it then trails the exit the same way and sells.
06Rebalance bot
Keeps 2 to 20 assets at target weights adding up to 100 %. It checks every N minutes (5 minutes to 7 days) and trades back to the targets when a weight drifts by more than the threshold. Spot only.
07Indicator bot
Enters and exits on rules you build without code. Long, or short on futures; timeframe 5m, 15m, 1h, 4h or 1d.
| Setting | Meaning |
|---|---|
| Entry rules | When to enter (rule builder) |
| Exit rules | Optional: exit at market when they hold |
| Order size, entry order | Quote amount per entry; market, or a limit at the signal bar's close that is cancelled if it is not filled before the next bar closes |
| Take-profit, stop loss, trailing stop | Optional %. At least one way out is required: exit rules, take-profit, stop or trailing stop. |
| Bars to wait after an exit | Cooldown in closed bars |
One trade at a time. After 3 refused entries or exits in a row the bot stops.
08The rule builder
A rule compares two things with >, <, crosses above or crosses below. Each side is an indicator, a price (open, high, low, close) or a number. Rules are combined with AND / OR groups, up to 12 rules and 3 levels deep.
| Indicator | Parameters (default) |
|---|---|
| SMA, EMA | period 20, source close |
| RSI | period 14 |
| MACD | fast 12, slow 26, signal 9; line, signal or histogram |
| Bollinger bands | period 20, deviation 2; mid, upper, lower or %B |
| ATR | period 14 |
| Stochastic RSI | 14, 14, 3, 3; K or D |
| VWAP | resets at 00:00 UTC; timeframes 5m and longer only |
| Volume, volume SMA, % change | volume SMA period 20, % change period 1 |
Rules are checked on closed candles only, so a signal never repaints. Each side can look back up to 50 bars (offset). A rule with no value yet (not enough history) is false.
09Presets
Built-in starting points: parameters with a plain-language explanation and the risks. A preset never contains performance figures or promises (server/src/bots/presets.ts).
| Preset | Type | What it is |
|---|---|---|
| Conservative BTC DCA | DCA | Small base order, 5 safety orders, one take-profit |
| ETH range grid | Grid | 21 levels from 8 % below to 8 % above the current price |
| RSI oversold bounce | Indicator | Enters when RSI(14) crosses above 30, exits when it crosses above 70, 4 % stop |
| EMA 9/21 trend | Indicator | 4h EMA 9/21 crossover, 5 % trailing stop, 6 % stop |
| Bollinger mean reversion | Indicator | Limit entry when a bar closes below the lower band, exit above the mid band, 5 % stop |
| Weekly rebalance 60/40 | Rebalance | 60 % the market's coin, 40 % its quote currency, checked weekly, 5-point threshold |
Presets contain no prices: a range grid is placed around the price of the market you apply it to.
10Your templates
Save as template in the wizard keeps the parameters only (no account and no results). Up to 50 per user, under My templates.
11Backtest
Bots, Backtest, or Backtest in the wizard, replays the bot on past candles of the exchange: trades, realised PnL, maximum drawdown and fees. It runs the same decision code as the live bot; at each candle the strategy sees only earlier candles. Results are labelled simulated.
- Timeframes 5m to 1d. Up to 5000 candles of the chosen range are replayed, starting with a simulated balance of 10000 in the quote currency.
- Limited to 6 backtests per user per minute and 2 running at once on the server, so backtests never starve live trading of market data.
- Fills are simulated from candles; real fills, slippage and partial fills differ.
12Signal bots
A signal bot turns TradingView alerts or Telegram channel posts into Smart Trades. See Signal bots.