For the complete documentation index, see llms.txt. This page is also available as Markdown.

10. Rule-Based strategy

Draw buy and sell levels on the chart, and Surge trades them at your prices around the clock.

You already know where you'd buy the dip and where you'd take profit. The hard part is being awake when the price gets there. With Rule-Based, each level is a standing instruction: when the price reaches this line, trade this much, this many times.

What you'll learn

  • Placing buy and sell levels directly on the chart

  • Setting size, max executions and cooldown for each level

  • Reading plan metrics and the price guarantee

  • Tracking fills and editing levels while the strategy runs

Create a Rule-Based strategy

  1. Click New Strategy and choose Rule-Based.

  2. Pick your pair and the DEXes to monitor. A level fires on whichever selected DEX reaches its price first.

  3. Click Add Level, then click the chart where you want the level. Buy levels go below the price and sell levels above it.

  4. Drag a level's tag to adjust its price.

  5. Set each level's details in the Levels table.

  6. Review Plan Metrics, then deploy.

Level settings

Setting
What it does

Side

Buy or sell

Price

The price that triggers the level

Size

Buys are sized in ADA, sells in tokens

Max executions

How many times the level can fire

Cooldown

The minimum time between fills

Example: scale in with three buys at 0.039, 0.037 and 0.034 ADA, and take profit with two sells above the current price.

Plan metrics and the guarantee

  • Plan metrics: your total buys, sells, fees and net token change if every level fills

  • The guarantee: every trade carries an on-chain price floor. A fill can come in better than your line, but never worse.

While it runs

  • Current P&L: profit and loss from filled executions

  • Executions used: how many fills have happened so far

  • Fees paid: the running total

  • Executions tab: every fill, with its DEX and price

  • Edit any time: add, edit or remove levels. Changes apply from the next attempt.

Good to know

  • Fund both sides. Buy levels need ADA in the wallet and sell levels need the token.

  • Use cooldowns on levels that fire more than once. They stop a level from filling over and over while the price hovers around it.

  • Keep the Surge tab open. Trades are signed in your browser. Turn on Keep display awake in Settings.

Next

11. Managing strategies, alerts and settings

Last updated