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

# Your First Agent

Your first job for a MOJO Agent, start to finish: what to tell it, what its reply and card mean, and what it does after you approve.

Quick Start showed you the shape of it. This page hands one real job to a MOJO Agent and goes through it slowly, so you know what every part means before you use your own money.

You don't build the logic yourself. You tell the agent what you want in one sentence. It works out the plan, shows it to you, and runs it once you approve.

The job: **buy a small amount of BTC, but only if the price falls to a level you choose.**

***

## What to tell your agent

Open a new chat. On the web, click **New chat** in the sidebar. In the app, open the **Chat** tab and tap the pencil icon at the top.

Then type this, changing the numbers to whatever you like:

> Buy $20 of BTC if the price drops below 75,000. Set a 5% stop loss and take profit at 10%.

That's the whole brief. No menus, no order types to pick.

**Why this one first:** it has a clear trigger, a small fixed amount, and both an exit for when you're wrong and an exit for when you're right. Those four things are the skeleton of almost every job you'll give an agent later.

***

## What your agent comes back with

Your agent thinks for a minute. It reads your balances, connected accounts and open positions, and checks what's possible. Then it answers in two parts: its plan in plain language, and a card underneath.

{% tabs %}
{% tab title="Web" %}
![MOJO's reply on the web: the order it drafted, then why it chose Binance spot, where the money comes from, and what happens if the price never gets there](https://1117120985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSTf6fKOHGBAMAS8B2Eu%2Fuploads%2F1gS07RM7s3YM3qhlciiW%2Fweb-btc-reply-en.jpg?alt=media)

![The card on the web: Spot · Limit order · Binance, BTC spot limit buy for $20 at a $75,000 limit, the TP and SL prices, and the Place order and Details buttons](https://1117120985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSTf6fKOHGBAMAS8B2Eu%2Fuploads%2FoFtTLwO3e4EreFwgDzah%2Fweb-btc-card-en.jpg?alt=media)
{% endtab %}

{% tab title="App" %}

<figure><img src="https://1117120985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSTf6fKOHGBAMAS8B2Eu%2Fuploads%2Fa09F3b8sDPpGuYRbg2Dt%2Fmobile-btc-card-en.jpg?alt=media" alt="The same reply and card in the app, with Place Order and Details at the bottom of the card" width="560"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Part one: the plan in plain language

Above the card, the agent explains what it's about to do and why. The account in this example already had Binance connected and a BTC position open on Hyperliquid. Its reply covered:

* **The order** — a Binance spot limit buy: $20 of BTC at $75,000. A take profit at $82,500 (+10%) and a stop loss at $71,250 (−5%) are attached once it fills. BTC was about $81,540, so the order waits until the price comes down.
* **Why this venue** — the existing Hyperliquid position used 5x leverage, so a new Hyperliquid order would have had to use 5x as well. Binance spot can attach a stop loss and take profit directly to the fill.
* **Funding** — the card first moves $20 USDT into Binance spot from the Binance portfolio margin account.
* **If it never fills** — no BTC is bought, and the $20 USDT stays in Binance spot.
* **How long it lasts** — the order is GTC (good till cancelled). It stays on Binance until it fills or it is cancelled.

**Read this part.** It's where the agent tells you the things you didn't think to ask. Here, that meant learning it picked Binance instead of the MOJO wallet, and why.

> 💡 **Your card may look different.** The agent picks the venue and how to carry the job out from your balances, connected accounts and open positions. When an exchange can hold the whole job, as Binance spot could here, it places one order with the exits attached. With only a MOJO wallet, the same sentence can come back as an agent that keeps watching the price and buys when it gets there. The plan above the card always says which one you got.

### Part two: the card

The card is the summary. The top line shows the type and the venue, here **Spot · Limit order · Binance**. Below that are the name and amount (**BTC spot limit buy**, $20), the limit price, roughly how much BTC that buys, and the take profit and stop loss.

The button on each card says what it will do. These are the two cards you'll see most often:

| What the card is                                             | Button          | What happens when you tap it                                                                            |
| ------------------------------------------------------------ | --------------- | ------------------------------------------------------------------------------------------------------- |
| An order, such as **Spot · Limit order**                     | **Place order** | The order goes to the exchange straight away. A limit order then waits there until the price reaches it |
| An agent, such as a **Monitor Agent** or a **Trading Agent** | **Launch now**  | The agent starts running. It checks the market on a schedule and acts when your condition is met        |

Cards that trade straight away at the market price have a button such as **Buy now**, **Sell now** or **Open now**.

To see the full plan first, tap the **Details** button. In the app, a sheet opens. It shows the amount, what you pay, what you receive, an agent summary and a price chart. The button at the bottom of the sheet is the final confirmation.

For an agent, the details have one more section below the summary: the **Execution plan**.

It previews the agent's steps as a flow. Expand it to check each condition, each action and the order they run in. Opening the plan doesn't start the agent or place a trade. You still decide whether to approve.

**Nothing is sent until you confirm.** You confirm with the button on the card, or with the button at the bottom of the sheet. If you close the card or the sheet, nothing happens.

***

## Changing it before you approve

The card in a chat isn't a form you edit. You talk to your agent:

> Make it $10 instead.
>
> Use 70,000 as the trigger.
>
> Drop the take profit, just keep the stop loss.

The agent rewrites the card each time. There's no limit and nothing is committed until you approve.

You can also tell it where to trade:

> Use my MOJO wallet, not Binance.

> 💡 If the card is badly wrong, it's usually faster to start over and say it differently than to correct it three times.

> 🧩 **Playbooks work differently.** A Playbook is a ready-made template. You change its values, such as the coin or the amount, before you send it. See [Playbooks](https://docs.mojo.trade/user-guide/playbooks.md).

***

## After you approve

**An order** goes to the exchange straight away. If the price is above your limit, it waits there. If you used your Binance account, you can also see it in Binance's own open orders.

**An agent** runs on MOJO's side, not on your phone, so you can close the app. It keeps working around the clock until its job is done or you stop it.

**Where to look:**

* **Activity** — orders show up here as they are placed and filled. On the web it's in the sidebar. In the app, open the **Portfolio** tab. Next to the **Activity** heading is a **›** button. Tap it.
* **Assets** — agents appear in the list with their status and latest event. In the app, look on the **Portfolio** tab.

**What you should expect to see:** if BTC is above your trigger, nothing will happen for a while. That is your agent doing its job. An order or agent that is waiting is not broken.

***

## Stopping or changing it

**An order:** ask MOJO in the same chat, for example "cancel my BTC limit order" or "move the limit to 72,000". It will show you a new card to confirm.

**An agent:** open it from the **Assets** page, or the **Portfolio** tab in the app. The agent screen has two buttons:

* **Modify** — tell MOJO what to change, then confirm the new card, the same as the first time
* **Stop** — the agent stops watching and stops placing orders

**Stopping an agent leaves its open positions in place.** If you also want to close the position, ask MOJO to close it.

***

### Common mistakes

| Mistake                                        | What to do instead                                                                                                                                      |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Approving without reading the terms            | Read the text above the card. That's where the surprises live.                                                                                          |
| Not checking the venue                         | The top line of the card says where it will trade. If it's not where you expected, say so in the chat.                                                  |
| Setting the trigger far from the current price | It'll sit there for days. Check where the price is now before picking a level.                                                                          |
| Expecting exact fills                          | Agents check conditions on a schedule, so the fill can be past your number. Never size a position assuming a perfect fill.                              |
| Thinking stopping the agent closes the trade   | It doesn't. Close the position separately if that's what you want.                                                                                      |
| Starting with a complex multi-venue job        | Get one simple agent working first. [Example Prompts](https://docs.mojo.trade/use-cases/example-prompts.md) goes from simple to advanced in that order. |

***

### Next

* [Example Prompts](https://docs.mojo.trade/use-cases/example-prompts.md) — more things to try, easiest first
* [Managing Your Agents](https://docs.mojo.trade/user-guide/managing-your-agents.md) — watching and changing what's running


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mojo.trade/user-guide/your-first-strategy.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
