The logs folder stores all the logs in which the MoonBot terminal records all its actions.
There are text files without prefix ADD with date (year-month-day) with extension .log - it is a log of all bot actions for those dates in which bot records all events line by line with time: bot start and stop, strategy start, buy, sell, order reset, API errors, records of stop losses, trailing as well as other working and system events.
There are text files with prefix ADD with date (year-month-day) with extension .log - these are logs of all records from Telegram for these dates, which were received by MoonBot, and you can determine if the terminal reads messages from Telegram correctly.
Also in the logs folder there are Pump files with the trade pair and .bin extension, which are graphical records of trades in the MoonBot terminal. They can be opened through the table with reports, if you click on the coin name in the line with the report and see what was the entry into the deal and how it closed.
On the Settings - Advanced - System tab, click the “Delete old logs since XX days” slider. If 0, don't keep report charts also” you can set the timeframe for deleting logs and charts with reports with .bin extension from the folder with logs. If the slider is set to 0 in the leftmost position, the charts with reports of deals will not be written to the folder with logs. The slider “Charts in reports XX mins after close” can be used to adjust the duration of the time interval on the chart after closing a trade.
If you use API keys that support white IP addresses, it is recommended to use permanent IP addresses. In this case you will be protected from such errors. In your case, in spot trading, if orders are not saved in the bot, you can use a backup from the bak folder of files like:
bak/BinanceUSDTOrders.backup-1
bak/BinanceUSDTOrders.backup-2
bak/BinanceUSDTOrders.backup-3
Files with orders with digits at the end 1, 2, 3 are written to the bak folder once every 8 hours with a recording coverage of 24 hours.
To restore an order file you need to close the MoonBot terminal, delete "empty" order files from the data folder (for example, for spot trading on USDT pair like BinanceUSDTOrders.backup, BinanceUSDTOrders.backup2, BinanceUSDTOrders. backup3) copy the appropriate file (either the most recent by date or, if the most recent one does not contain orders, the previous one, you can estimate the backup by the file size, the size of an empty file is 32 bytes) from the bak folder to the data folder and rename them according to the format of similar files in the data folder, for example:
bak\BinanceUSDTOrders.backup-1 -> data\BinanceUSDTOrders.backup
After replacing and renaming the orders file, start MoonBot terminal in administrator mode.
In addition, we recommend that you periodically save the MoonBot terminal folder to a separate archive folder at regular intervals so that you can restore data (report files, open trades, strategies, etc.) from this archive.
Reports on all transactions (open, closed, deleted) in the MoonBot terminal are stored in the data folder, in files like: Binance.db (for the spot market) or Binance Futures.db (for the futures market). In rare cases, if MoonBot terminal is closed unexpectedly, the file with reports may be empty. To restore it, you need to close the MoonBot terminal, then copy the backup of the reports file from the bak folder and the data folder and start MoonBot in administrator mode. In addition, we recommend that you periodically save the MoonBot terminal folder to a separate archive folder at a certain interval so that you can restore the data (report files, open trades, strategies, etc.) from this archive.
When the MoonBot terminal is turned off, you can add a line to the MoonBot.ini file with a new parameter HookRecalcInterval, whose value can be from 200 to 500 (measured in milliseconds) - this is the detector recalculation interval. By default HookRecalcInterval=500 milliseconds). This value affects the detection recalculation rate of the following strategies: MoonHook, Spread, EMA, Activity.
If your MoonBot terminal is located on a remote server without an explorer (core windows), then when you export reports in .csv and .xls format, they are saved to the terminal's Export folder without a file selection window.
The MoonBot terminal has functionality that automatically saves all drawing elements on coin charts in zip files like: USDT-ChartFigures.zip, USDT-ChartFigures-1.zip, USDT-ChartFigures-2.zip (example for USDT pair), which are saved in the bak folder. In addition, you can manually perform such saving by right-clicking on the “Pencil” icon on the main window and use the “Diskette” icon in the menu of drawing elements. If you need to load a file with previously saved drawing elements, then click on the icon located to the right of the “Diskette” icon, then in Explorer select the previously saved file and click Open. All saved items will then be loaded into the MoonBot terminal. If you had time to draw new elements before loading, they will be added to the new elements in the charts when loading the old ones.