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.