---
id: faq_item.245
page_type: faq_article
title: "What does the KeepOrdersAfterCrash parameter in the [Special] section of the Moonbot.ini file in the Moonbot terminal do?"
description: "In the Moonbot.ini file of the Moonbot terminal, in the [Special] settings section, the KeepOrdersAfterCrash=0 parameter is responsible for the mechanism of can..."
section: faq
category: "File system"
url: https://moonbot.pro/faq/file-system/245?format=md
locale: en
alternate_ru: https://moonbot.pro/ru/faq/file-system/245?format=md
alternate_zh: https://moonbot.pro/zh/faq/file-system/245?format=md
parent: https://moonbot.pro/faq/file-system?format=md
previous: https://moonbot.pro/faq/file-system/244?format=md
next: https://moonbot.pro/faq/file-system/246?format=md
status: published
updated_at: 2026-11-17T22:56:58+03:00
---

# What does the KeepOrdersAfterCrash parameter in the [Special] section of the Moonbot.ini file in the Moonbot terminal do?

In the Moonbot.ini file of the Moonbot terminal, in the \[Special\] settings section, the KeepOrdersAfterCrash=0 parameter is responsible for the mechanism of cancelling Buy orders after an abnormal restart of the Moonbot terminal or Windows.

Cancelling Buy orders in abnormal situations on the computer is a necessary protective measure in the terminal, since, for example, if you were trading on your home computer and suddenly the power goes out, the status of Buy orders will not have been saved to disk, and if they are not cancelled by this mechanism after restarting the terminal, these orders will remain on the exchange without control, which may lead to their execution and possible liquidation of the position, as you will not be able to control this position.

If you do not need such protection with the cancellation of Buy orders, you can add the following line to Moonbot.ini yourself:

KeepOrdersAfterCrash=1 "’do not remove Buy orders after an abnormal restart of Moonbot or Windows"’, but this setting is a last resort and will generally lead to liquidations due to pending orders rather than positive results.

To restore the protection mechanism, simply set KeepOrdersAfterCrash=0 "’remove Buy orders after an abnormal restart of Moonbot or Windows"’ or delete this line from Moonbot.ini altogether, i.e. it is not necessary to change the status of the KeepOrdersAfterCrash entry from 1 to 0, as this line is hard-coded by default and does not need to be specified in Moonbot.ini.\
All changes to the Moonbot.ini file should only be made when the terminal is turned off.

## Navigation

Path: [Main](https://moonbot.pro/?format=md) / [FAQ](https://moonbot.pro/faq?format=md) / [File system](https://moonbot.pro/faq/file-system?format=md) / What does the KeepOrdersAfterCrash parameter in the \[Special\] section of the Moonbot.ini file in the Moonbot terminal do?

Parent section: [File system](https://moonbot.pro/faq/file-system?format=md)

Previous: [What does the UseBinanceTrailing parameter in the \[Special\] settings section of the Moonbot.ini file in the Moonbot terminal do?](https://moonbot.pro/faq/file-system/244?format=md)

Next: [What does the GlobalDefOrdersLimit parameter in the \[Special\] section of the Moonbot.ini file in the Moonbot terminal do?](https://moonbot.pro/faq/file-system/246?format=md)

## Related

- [What does the GlobalDefOrdersLimit parameter in the \[Special\] section of the Moonbot.ini file in the Moonbot terminal do?](https://moonbot.pro/faq/file-system/246?format=md)
- [What does the GlobalDefRateLimit parameter in the \[Special\] section of the Moonbot.ini file in the Moonbot terminal do?](https://moonbot.pro/faq/file-system/247?format=md)
- [What does the GlobalDefOrdersDayLimit parameter in the \[Special\] section of the Moonbot.ini file in the Moonbot terminal do?](https://moonbot.pro/faq/file-system/248?format=md)
- [What does the CashBackRatioSpot parameter in the \[Special\] section of the Moonbot.ini file in the Moonbot terminal do?](https://moonbot.pro/faq/file-system/249?format=md)
- [What does the CashBackRatioFutures parameter in the \[Special\] section of the Moonbot.ini file in the Moonbot terminal do?](https://moonbot.pro/faq/file-system/250?format=md)
