---
id: faq_item.1654
page_type: faq_article
title: "我在 Moonbot 终端中设置了同时挂做多和做空订单，但挂出做多订单后，做空订单就不再挂出，日志中有这样的记录：Market XXX is opened in Long position，如何解决？"
description: "在 Moonbot 终端中，某些策略会使用策略设置 Filters / Price/Position 选项卡上的参数 SamePosition（后续订单按已开仓位的方向挂出）。如果 SamePosition=YES，并且例如..."
section: faq
category: "日志中的错误"
url: https://moonbot.pro/zh/faq/log-errors/1654?format=md
locale: zh
alternate_ru: https://moonbot.pro/ru/faq/log-errors/1654?format=md
alternate_en: https://moonbot.pro/faq/log-errors/1654?format=md
parent: https://moonbot.pro/zh/faq/log-errors?format=md
previous: https://moonbot.pro/zh/faq/log-errors/1653?format=md
next: https://moonbot.pro/zh/faq/log-errors/1655?format=md
status: published
updated_at: 2026-11-17T23:07:28+03:00
---

# 我在 Moonbot 终端中设置了同时挂做多和做空订单，但挂出做多订单后，做空订单就不再挂出，日志中有这样的记录：Market XXX is opened in Long position，如何解决？

在 Moonbot 终端中，某些策略会使用策略设置 Filters / Price/Position 选项卡上的参数 SamePosition（后续订单按已开仓位的方向挂出）。如果 SamePosition=YES，并且例如已经开了多单，那么后续订单也会按做多方向挂出；而当尝试挂做空订单时，Moonbot 会拒绝该操作，并在日志中注明原因：Market XXX is opened in Long position。您需要正确使用这项设置，或者把策略复制成两份，分别用于做多订单和做空订单。

要让策略检查这个参数，需要在总的 Filters 选项卡上设置 IgnoreFilters = NO，并在 Filters / Price/Position 选项卡上设置 IgnorePrice = NO。此时 Filters / Price/Position 选项卡左侧应亮起绿色竖条，表示该选项卡及其中的参数没有被忽略。

## 导航

路径: [首页](https://moonbot.pro/zh?format=md) / [常见问题](https://moonbot.pro/zh/faq?format=md) / [日志中的错误](https://moonbot.pro/zh/faq/log-errors?format=md) / 我在 Moonbot 终端中设置了同时挂做多和做空订单，但挂出做多订单后，做空订单就不再挂出，日志中有这样的记录：Market XXX is opened in Long position，如何解决？

上级栏目: [日志中的错误](https://moonbot.pro/zh/faq/log-errors?format=md)

上一页: [我的 Moonbot 终端在 Gate 交易所上因 API 错误而停止，日志中有这样的记录：Set Buy order: FAIL; \[400 CONTRACT_IN_DELISTING\]，如何解决？](https://moonbot.pro/zh/faq/log-errors/1653?format=md)

下一页: [在 Moonbot 终端中注册 API 密钥时，日志中出现这样的错误：AuthCheck error! TryCount=3 Works only with UTA Accounts! (ok) resp: \[200\]，请问如何解决？](https://moonbot.pro/zh/faq/log-errors/1655?format=md)

## 相关内容

- [在 Moonbot 终端中注册 API 密钥时，日志中出现这样的错误：AuthCheck error! TryCount=3 Works only with UTA Accounts! (ok) resp: \[200\]，请问如何解决？](https://moonbot.pro/zh/faq/log-errors/1655?format=md)
- [接收 webhook 信号时，日志中出现这样的记录：MARKET FOUND BUT ONLY 1 CHAT !，如何解决？](https://moonbot.pro/zh/faq/log-errors/1656?format=md)
- [我在 Moonbot 终端日志中看到这样的记录：Status: 400 This symbol is not permitted for this account，这是什么意思？](https://moonbot.pro/zh/faq/log-errors/1657?format=md)
- [在 Bybit 交易所的 Moonbot 现货终端中交易时，我在日志中看到以下记录：USDT-SUI Set Buy order: FAIL; {"retCode":170241,"retMsg":"To proceed with trading, users must read through and confirm that they fully understand the project's risk disclosure document. For App users, please update your Bybit App to version 4.16.0 to process."，这时需要怎么做？](https://moonbot.pro/zh/faq/log-errors/1658?format=md)
- [在 Bybit 交易所的 Moonbot 终端中交易时，Buy 订单没有挂出，日志中发现这样的记录：Buy order: FAIL; {"retCode":10001,"retMsg":"estimated will trigger liq"，这是什么意思？](https://moonbot.pro/zh/faq/log-errors/1659?format=md)
