Text Link
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Quick Guide to Watchdog

Learn how to set up Watchdog - a system that automatically closes trading positions and cancels orders if your trading core fails. Step-by-step guide for local and VPS setup.
Watchdog
Guide
Manual
Moontrader Team
December 10, 2024

What is Watchdog?

The logical principle of Watchdog operation is that it establishes a communication channel with your cores (profiles) and the exchange. If Watchdog loses connection with your core, it will assume that the core has stopped/crashed/shut down/failed. In this case, Watchdog will send necessary commands to the exchange through the communication channel (instead of the "dead" core), using the keys stored in that profile, to close all positions and cancel all orders.

IMPORTANT: If you have entered long-term positions, Watchdog will close ALL open positions!

We strongly recommend watching the video that clearly demonstrates how to launch Watchdog. Technically, Watchdog is another core running with the --watchdog-mode parameter (similar to --no-update). When using this flag, the core will operate with a more "compressed" set of functions.

You can run Watchdog anywhere — locally or on a server, but keep in mind that Watchdog must operate in "Client" mode. This means it needs:

  • client token
  • core token
  • VPS address where the monitored core is running

This first iteration may not be the best from an architectural standpoint, but we will improve it based on your feedback.

Step-by-Step Setup Instructions:

  1. Create a separate copy of the MT folder specifically for Watchdog
  2. Download the folder with the profile you want to monitor from the server
  3. Place this profile folder in the "data" folder with Watchdog. Don't forget to add the corresponding .aes file for this profile to the data folder!
  4. Launch MT from this folder, edit the profile to set "Client + Console" mode
  5. Verify the correctness of the core token and IP address of the virtual machine where the core will run (for local testing, use address 127.0.0.1 instead of localhost)
  6. Save the profile changes
  7. For VPS: if Watchdog will run on VPS, copy the .aes file and the edited profile folder back to the VPS. For local launch on Windows, create a core shortcut and add --watchdog-mode to the end of the path. Important: don't forget the space after MTCore or MTCore.exe!
  8. Launch the core you want to monitor and the client to connect to it
  9. Upload the Watchdog build to the VPS and launch the core with the --watchdog-mode flag (on Linux, this is typically ./MTCore --watchdog-mode)
  10. For testing, open a position and kill the core. Watchdog should quickly detect the core failure, close the position, and remove orders

Check us out on

To learn more

The latest news, technology and resources from our team.
Moontrader
Feedback
Community

TOP-5 Moontrader Updates Based on User Requests

In this article, we'll take a look at five major updates to the Moontrader terminal that have come to life thanks to active user input. Some features were implemented directly as a result of trader requests, while others became the starting point for broader improvements.
Moontrader Team
May 5, 2025
Moontrader
Features
Tools

Hidden but Powerful Moontrader Features Every Trader Should Know

In this article, you'll discover five advanced tools in Moontrader that will help you improve algorithmic control, minimise risk and simplify your daily crypto trading routine.
Moontrader Team
May 1, 2025
Algorithmic trading
Risk management
Moontrader tools

Algorithmic Trading Without Fear: Risk Management Tools in Moontrader, Part 1

Want to trade on crypto exchanges with confidence and control? This article provides an in-depth look at the risk management features in Moontrader. Learn how to protect your funds and avoid costly mistakes in both algorithmic and manual crypto trading.
Moontrader Team
Apr 30, 2025
Moontrader
Feedback
Community

TOP-5 Moontrader Updates Based on User Requests

In this article, we'll take a look at five major updates to the Moontrader terminal that have come to life thanks to active user input. Some features were implemented directly as a result of trader requests, while others became the starting point for broader improvements.
Moontrader Team
May 5, 2025
Moontrader
Features
Tools

Hidden but Powerful Moontrader Features Every Trader Should Know

In this article, you'll discover five advanced tools in Moontrader that will help you improve algorithmic control, minimise risk and simplify your daily crypto trading routine.
Moontrader Team
May 1, 2025
Algorithmic trading
Risk management
Moontrader tools

Algorithmic Trading Without Fear: Risk Management Tools in Moontrader, Part 1

Want to trade on crypto exchanges with confidence and control? This article provides an in-depth look at the risk management features in Moontrader. Learn how to protect your funds and avoid costly mistakes in both algorithmic and manual crypto trading.
Moontrader Team
Apr 30, 2025
Moontrader
VPS
Localhost

Localhost vs VPS: Hidden Risks Every Trader Should Know

Installing the Moontrader core locally on your PC or laptop may seem convenient, but it comes with major risks - from lost trades to compromised security. This article explains why using a Virtual Private Server (VPS) is not optional, but essential for secure and stable trading.
Moontrader Team
Apr 29, 2025

© 2024 MTSS Development OU, Estonia. All rights reserved.

Disclaimer: Moontrader is not a regulated entity. Trading involves substantial risks, and past performance is not indicative of future results. The profits shown in product screenshots are for illustrative purposes and may be exaggerated. Only engage in trading if you possess sufficient knowledge. Under no circumstances shall Moontrader accept any liability to any person or entity for (a) any loss or damage, in whole or in part, caused by, arising out of, or in connection with transactions involving our software or (b) any direct, indirect, special, consequential, or incidental damages. By using Moontrader's services, you acknowledge and accept the inherent risks involved in trading and agree to hold Moontrader harmless from any liabilities or losses incurred. It is essential to review and understand our Terms of Service and Risk Disclosure Policy before using our software or engaging in any trading activities. Please consult legal and financial professionals for personalized advice based on your specific circumstances.
All trademarks and copyrights belong to their respective owners. MoonTrader ecosystem is a registered trademark of MTSS Development OU, Estonia.

Terms of Use

Privacy Policy