---
id: faq_item.1454
page_type: faq_article
title: "Is it possible to quickly close a position in the Moonbot terminal immediately after purchase using the EMA formulas?"
description: "For some algorithms in the Moonbot terminal, it is required to try to close it as quickly as possible after buying a coin, for example, when using emulator stra..."
section: faq
category: "Strategy settings"
url: https://moonbot.pro/faq/strategy-settings/1454?format=md
locale: en
alternate_ru: https://moonbot.pro/ru/faq/strategy-settings/1454?format=md
alternate_zh: https://moonbot.pro/zh/faq/strategy-settings/1454?format=md
parent: https://moonbot.pro/faq/strategy-settings?format=md
previous: https://moonbot.pro/faq/strategy-settings/1453?format=md
next: https://moonbot.pro/faq/strategy-settings/1455?format=md
status: published
updated_at: 2026-11-17T22:53:08+03:00
---

# Is it possible to quickly close a position in the Moonbot terminal immediately after purchase using the EMA formulas?

For some algorithms in the Moonbot terminal, it is required to try to close it as quickly as possible after buying a coin, for example, when using emulator strategies that should give a trigger key to launch another real strategy, but at the same time leave the date and time of the trigger in the emulator report for subsequent analysis of the initial detection. Such a quick closing of a position after purchase can be achieved by configuring the comparison algorithm of the EMA formulas in the Sell Order section of the strategy settings.

To do this, install:\
SellByCustomEMA = EMA(5m,1)>-1000\
SellEMADelay = 0\
SellEMACheckEnter = NO

In this case, immediately after the purchase, the verification algorithm for the formula EMA(5m,1)>-1000 will start, a condition that is always met, after which the PanicSell algorithm will be activated and the position will be quickly closed.

## Navigation

Path: [Main](https://moonbot.pro/?format=md) / [FAQ](https://moonbot.pro/faq?format=md) / [Strategy settings](https://moonbot.pro/faq/strategy-settings?format=md) / Is it possible to quickly close a position in the Moonbot terminal immediately after purchase using the EMA formulas?

Parent section: [Strategy settings](https://moonbot.pro/faq/strategy-settings?format=md)

Previous: [I have a bunch of strategies working in the Moonbot terminal: Master is an emulator strategy for detecting volatile coins, and Slave1 is already placing orders with a real balance. Is it possible to see in the terminal report how many detectors the Master emulator strategy gave in order to compare with the number of closed real transactions from the Slave1 strategy?](https://moonbot.pro/faq/strategy-settings/1453?format=md)

Next: [Is it possible to quickly close a position in the Moonbot terminal immediately after purchase, using the PriceDown algorithm to automatically reduce the Sell order?](https://moonbot.pro/faq/strategy-settings/1455?format=md)

## Related

- [Is it possible to quickly close a position in the Moonbot terminal immediately after purchase, using the PriceDown algorithm to automatically reduce the Sell order?](https://moonbot.pro/faq/strategy-settings/1455?format=md)
- [Is it possible to quickly close a position in the Moonbot terminal immediately after purchase, using the SellLevel algorithm to automatically adjust the Sell order to the previous maximum price?](https://moonbot.pro/faq/strategy-settings/1456?format=md)
- [Is it possible to quickly close a position in the Moonbot terminal immediately after purchase using the SellShot algorithm, following the Sell order at the current price with specified boundaries?](https://moonbot.pro/faq/strategy-settings/1457?format=md)
- [Is it possible to quickly close a position in the Moonbot terminal immediately after purchase using the StopLoss setting?](https://moonbot.pro/faq/strategy-settings/1458?format=md)
- [Is it possible to instantly close a position in the Moonbot terminal immediately after purchase using the FastStopLoss setting?](https://moonbot.pro/faq/strategy-settings/1459?format=md)
