Flow blocks & expressions
Every block, the metrics expressions can use, and variables.
The blocks you can use depend on the chain. The palette only shows the ones available. Settings with a ƒx switch accept either a fixed value or an expression.
Triggers
A trigger starts a run. A flow can have several.
| Block | Starts a run |
|---|---|
| Manual | When you press Run now. |
| Token launched | When the launch confirms, optionally after a delay. |
| Schedule | Every interval, with optional random jitter. |
| Market condition | When an expression becomes true, checked on an interval. |
| Outside swap | When someone else buys or sells at least a set size. |
| Dev wallet sells | When the developer wallet sells at least a share of its holdings. |
| Automation event | On an event from your other automations, such as the daily limit being reached. |
Logic
| Block | Does |
|---|---|
| If | Continues on True or False depending on an expression. |
| Wait | Pauses for a duration, optionally with random jitter (for example 30 to 90s). |
| Wait until | Waits for an expression to become true (Met), or gives up after a timeout (Timeout). |
| Repeat | Runs the Loop branch a number of times, then continues on Done. |
| Set variable | Stores a value in a variable for later steps. |
| Random split | Takes branch A or B at random, with the chance you set. |
| Stop | Ends the run. |
Actions
| Block | Does |
|---|---|
| Buy | Buys with an amount of the trading currency, across all, selected or a random number of trade wallets. |
| Sell | Sells a share of what the wallets hold, optionally only above a USD market cap. |
| Launch token | Launches a ready draft (EVM chains). |
| Start strategy | Starts scheduled trades, counter trading, a grid bot or another strategy, set up with the same form as the Automations tab. |
| Stop strategy | Stops strategies the flow started. |
| Pause everything | Pauses every automation and flow on the token. |
| Set daily limit | Changes the token’s daily automation limit. |
| Notify | Sends you a notification. |
| Fund wallets | Tops up trade wallets (EVM chains). |
Expressions and metrics
Expressions compare live metrics, numbers and variables, for example mcap > 3 * vars.entry or pnlPct > 50 && devHoldingsPct < 1. The editor suggests names as you type (Ctrl + Space lists them) and flags mistakes such as an unclosed bracket or an unknown name.
Use + - * /, comparisons > < >= <= == !=, && (and), || (or), ! (not), brackets and min(), max(), abs(), round().
| Metric | Meaning |
|---|---|
mcap | Market cap, USD |
price | Token price, USD |
liquidity | Pool liquidity, USD |
holdingsPct | Share of supply your wallets hold |
holdingsQuote | What your wallets hold, in the trading currency |
pnlQuote | Net P&L on the token, in the trading currency |
pnlPct | Net P&L on the token, % |
sinceLaunch | Seconds since launch |
sinceStart | Seconds since this run started |
extBuys5m | Outside buys in the last 5 minutes |
extSells5m | Outside sells in the last 5 minutes |
netFlow5m | Outside buys minus sells in the last 5 minutes |
devHoldingsPct | Share of supply the dev wallet holds |
balanceQuote | Trading-currency balance across trade wallets |
now | Current time, in seconds |
Variables
A Set variable block stores a value, such as the market cap at entry, and any later expression can read it as vars.name. Each run has its own variables, and the run timeline shows their values.
Example: a trailing stop
- Buy, then Set variableSet
peaktomcap. - Wait untilCondition
mcap < vars.peak * 0.85, timeout 5 minutes. - On Met, Sell 100%The market cap fell 15% below the peak.
- On Timeout, raise the peakSet
peaktomax(vars.peak, mcap)and connect back to Wait until.