Strategy Usage
Recommendations for Terminal Setup for Autotrading on Servers
-
Open Menu → System Settings and in the System Settings window:
-
Enable the VDS optimized mode checkbox — this option conserves server resources by reducing memory and CPU usage for chart rendering, allowing more resources for algorithm execution.
-
It is strongly recommended to set a fixed pagefile size of 4096 MB on the server.
-
Manual setup:
Click the Set PageFile →Control Panel button to open the System Properties window. In the Performance section, click Settings…, then go to the Advanced tab and click Change… in the Virtual memory section. Uncheck Automatically manage paging file size, select the drive (usually C:), choose Custom size, and enter: -
Initial size (MB): 4096
-
Maximum size (MB): 4096
-
Click OK and reboot the server.
-
Automatic setup:
Click the Set PageFile → Registry button. If the terminal is not run as administrator, a message will appear: "Please run the bot as Administrator!" — close Moonbot, right-click the MoonBot.exe file and select Run as administrator. Then open System Settings again and click Set PageFile → Registry. The pagefile will be set to 4096 MB. Reboot the server. -
It\s recommended to enable Windows Auto-login: enter your Windows account name in the Login field and the password in the Password field, then click AutoLogin. If you need to reset the AutoLogin settings in Windows, click on the Reset AutoLogin button.
-
To launch Moonbot automatically with Windows startup, click Autostart on windows startup. Reboot the server to confirm — the terminal should start automatically.
-
Be sure to disable Windows Updates and Windows Defender on the server to prevent unexpected shutdowns of the terminal during updates. Otherwise, active orders will remain on the exchange without MoonBot control.
-
Disable Automatic Daylight Saving Time or set the time zone to UTC with time format in UTC.
-
If using the MoonShot strategy with a narrow price range (up to 0.5% between MshotPriceMin and MshotPrice), set the parameter MShotAddDistance=50, and also MShotUsePrice=Trade — prices for order adjustment will be based on the last trade, enabling faster response, which is especially useful for futures trading.
-
For fast-trading strategies — MoonShot with narrow spacing, MoonStrike, Drops with low drawdown — it is recommended to use a non-zero HFT value (an integer) in the Buy conditions tab.
How it works:
The HFT parameter sets the time window (in milliseconds) during which an order is considered valid. If HFT=0, the order remains active until filled, canceled manually, or by the strategy.
Why it's needed:
On servers with occasional high ping, order commands may reach the exchange too late. A short HFT window ensures that outdated orders are rejected, avoiding unfavorable executions.
Example:
On Vultr servers with a 10–20 ms ping, you can set HFT=100. If the exchange rejects orders, increase to 200–300 ms. If an order with HFT is rejected, Moonbot will notify you via Telegram. You can configure the frequency of such reports in Settings → Advanced → Remote, under Send System reports not more than once a minute. -
AutoStart Tab Settings
-
Enable the Auto stop on API errors option. Set the error threshold to 3–4 using the slider. Below, enable the Restart not earlier checkbox and set the interval to 20 minutes — the minimum time before restarting;
-
Additionally, you may enable the Auto stop by ping parameter — triggers auto-stop when ping exceeds a defined threshold. We recommend setting this to 100 ms or higher, depending on your server’s capabilities.