> For the complete documentation index, see [llms.txt](https://zilla-engine.gitbook.io/zilla-engine-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zilla-engine.gitbook.io/zilla-engine-docs/how-the-engine-works.md). Agents can also search and read this documentation through its [MCP server](https://zilla-engine.gitbook.io/zilla-engine-docs/~gitbook/mcp).

# How The Engine works

Buy the dips step by step, with price zones.

### The idea: buy the dips, step by step

Instead of buying everything at once, an accumulation strategy spreads your capital across several **price zones**. Each zone buys a part of your capital when the price drops by a percentage you choose.

**Example:** SOL is at $150 and your capital is $100.

| Zone          | Pullback | Buy price | Allocation |
| ------------- | -------- | --------- | ---------- |
| Immediate buy | —        | $150      | 20% = $20  |
| Zone 1        | -5%      | $142.50   | 25% = $25  |
| Zone 2        | -10%     | $135      | 25% = $25  |
| Zone 3        | -15%     | $127.50   | 30% = $30  |

If SOL never drops, only the immediate buy is made. If it drops to $135, zones 1 and 2 are filled, and your average entry price is lower than if you had bought everything at $150.

### Reference price

Zones are calculated from a **reference price**:

* **On Solana**, it is the price when you activate the strategy. Your zones become limit orders at fixed prices.
* **On Hyperliquid**, the reference price **follows the price up**: if the market rises, your zones move up with it, so they stay close to the current price.

### Exposure

**Max exposure** limits how much of your capital the strategy can really use. With $100 of capital and 60% max exposure, the engine never buys more than $60 in total.

### When does it run?

The engine checks active strategies about **once per minute**. On Solana, your zones are real limit orders on Jupiter, so they fill on their own the moment the price reaches them.

### Exit: take profit

You can add a **take profit**: when the price is a chosen percentage above your average entry, the engine sells. See **Strategy settings**.
