> For the complete documentation index, see [llms.txt](https://minara.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minara.ai/docs/minara-handbook/zh/gong-zuo-liu/how-to-set-up-automated-trade-execution.md).

# 自动化交易执行

Minara 可以监控特定的价格条件，并在条件满足时自动下单，非常适合逢低买入、止盈或设置止损，无需持续手动盯盘。

***

### 你将构建什么

一个工作流，能够：

* 监控 **绝对价格** 某个代币的（≥ 或 ≤ 某个设定值）
* 执行 **买入、卖出或两者都执行** 当条件满足时，包括 **止盈（TP）** 和/或 **止损（SL）** 策略
* 向你发送通知，确认执行结果

> 价格监控由我们的监控系统负责：实时且可靠，但仅适用于受支持链上的受支持代币。

***

### 示例提示

你只需简单描述你想要的下单逻辑。Minara 会将其转换为一个工作流，并使用我们专门的监控系统进行高精度执行。

1. **简单买入/卖出触发**

   > “如果 ETH 价格跌至 4,000 USDT，就买入价值 500 USDT 的 ETH。”
   >
   > “如果 BTC 价格达到 130,000 USDT，就卖出 0.1 BTC。”
   >
   > “如果黄金（XAU）跌至 2,900 美元，就买入价值 200 美元的黄金。”
2. **买入 + TP/SL 策略**

   > “如果价格 ≤ 175 USDT，就买入 200 USDT 的 SOL，然后在 200 USDT 止盈、160 USDT 止损。”
   >
   > “如果 NVDA 触及 1,000 美元，就买入价值 300 美元的仓位，并设置 5% 止损和 15% 止盈。”
3. **分批买入**

   > “在 4,000 USDT 买入价值 200 美元的 ETH，在 4,150 USDT 买入 200 美元，在 4,250 USDT 买入 200 美元。”
   >
   > “在 200 美元买入 100 美元的 AAPL，在 195 美元买入 100 美元，在 190 美元买入 100 美元。”
4. **部分退出**

   > “如果 DOGE 价格达到 0.25 USDT，就卖出我持仓的一半。”

***

### 最佳实践

* 使用 **带 TP/SL 的限价单** 以更好地管理风险。
* 保持你的 Telegram 账户已绑定，并且 [Minara 通知机器人](https://t.me/MinaraNotificationBot) 已启用，以获取实时执行更新。
* 如果你没有收到本应收到的执行结果邮件，请先检查垃圾邮件文件夹。
* 避免设置过小的 TP/SL 间距。突然的价格影线可能会触发过早退出。
* 对于小市值 meme 代币，山寨币和同名仿冒币很常见，尤其是在炒作期间。为避免出错，请务必注明并仔细核对链和代币的合约地址。

> 像 BTC、ETH 或 SOL 这样的主流资产已经通过合约加以区分。

***

### 未来发展

* 基于百分比的触发条件（例如，24 小时内 +5%）
* 用于订单触发的期货、杠杆和高级策略
* 多条件订单（例如，仅当价格条件 + 成交量飙升时才触发）
* 自动调整止损（追踪止损）
* 更多触发类型（例如，用于卖新闻策略的新闻触发）


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://minara.ai/docs/minara-handbook/zh/gong-zuo-liu/how-to-set-up-automated-trade-execution.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
