---
id: faq_item.1654
page_type: faq_article
title: "I have both long and short orders set up in the Moonbot terminal, but after placing an order in long position, short orders are not placed and the log shows the following entry: Market XXX is opened in Long position, how can I fix this?"
description: "For some strategies in the Moonbot terminal, on the Filters / Price/Position tab of the strategy settings, the SamePosition parameter is used (to place subseque..."
section: faq
category: "Log errors"
url: https://moonbot.pro/faq/log-errors/1654?format=md
locale: en
alternate_ru: https://moonbot.pro/ru/faq/log-errors/1654?format=md
alternate_zh: https://moonbot.pro/zh/faq/log-errors/1654?format=md
parent: https://moonbot.pro/faq/log-errors?format=md
previous: https://moonbot.pro/faq/log-errors/1653?format=md
next: https://moonbot.pro/faq/log-errors/1655?format=md
status: published
updated_at: 2026-11-17T23:07:28+03:00
---

# I have both long and short orders set up in the Moonbot terminal, but after placing an order in long position, short orders are not placed and the log shows the following entry: Market XXX is opened in Long position, how can I fix this?

For some strategies in the Moonbot terminal, on the Filters / Price/Position tab of the strategy settings, the SamePosition parameter is used (to place subsequent orders in the direction of the open position). If SamePosition=YES and, for example, a long position has been opened, subsequent orders will also be placed as long orders, and if you try to place short orders, Moonbot will reject this action and indicate the reason in the log: Market XXX is opened in Long position. You need to use this setting correctly or make separate copies of strategies for long and short orders.

To ensure that this parameter is checked by the strategy, set IgnoreFilters = NO on the general Filters tab, and set IgnorePrice = NO on the Filters / Price/Position tab. A green vertical bar should be visible to the left of the Filters / Price/Position tab, indicating that this tab and the parameters in it are not being ignored.

## Navigation

Path: [Main](https://moonbot.pro/?format=md) / [FAQ](https://moonbot.pro/faq?format=md) / [Log errors](https://moonbot.pro/faq/log-errors?format=md) / I have both long and short orders set up in the Moonbot terminal, but after placing an order in long position, short orders are not placed and the log shows the following entry: Market XXX is opened in Long position, how can I fix this?

Parent section: [Log errors](https://moonbot.pro/faq/log-errors?format=md)

Previous: [I have a terminal Moonbot on the Gate exchange gets up on API errors and in the log there is a record like Set Buy order: FAIL; \[400 CONTRACT_IN_DELISTING\] how to fix the situation?](https://moonbot.pro/faq/log-errors/1653?format=md)

Next: [When registering API keys in the Moonbot terminal, the following error appears in the log: AuthCheck error! TryCount=3 Works only with UTA Accounts! (ok) resp: \[200\], how can I fix it?](https://moonbot.pro/faq/log-errors/1655?format=md)

## Related

- [When registering API keys in the Moonbot terminal, the following error appears in the log: AuthCheck error! TryCount=3 Works only with UTA Accounts! (ok) resp: \[200\], how can I fix it?](https://moonbot.pro/faq/log-errors/1655?format=md)
- [When receiving webhook signals in the log there is a record like: MARKET FOUND BUT ONLY 1 CHAT !, how to fix it?](https://moonbot.pro/faq/log-errors/1656?format=md)
- [I saw an entry like:Status: 400 This symbol is not allowed for this account, what does it mean?](https://moonbot.pro/faq/log-errors/1657?format=md)
- [When trading on Moonbot spot terminal for Bybit exchange, I saw the following entry in the log: 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.”, what does this do?](https://moonbot.pro/faq/log-errors/1658?format=md)
- [When trading in the Moonbot terminal, no Buy order was placed for the Bybit exchange, but in the log I found an entry like: "Buy order: FAIL; {"retCode":10001,"retMsg":"estimated will trigger liq", what does this mean?](https://moonbot.pro/faq/log-errors/1659?format=md)
