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.
WSOT
Bybit
Tournament

Join the Moontrader Team at WSOT 2025 by Bybit

WSOT 2025 is the largest trading tournament on Bybit. Teams compete based on P&L% and share a total prize pool of up to 3,600,000 USDT. We’re building our own squad and inviting traders to join!
Moontrader Team
Aug 18, 2025
Features
Tips
Settings

Moontrader Features for Smart Trading

We explain how to optimize your trading using Moontrader's built-in tools. Part 4.
Moontrader Team
Jul 24, 2025
Trading terminal free
Bonuses
Referral Links

Moontrader for Free – Step-by-Step Guide 2025

Get everything you need to activate the unlimited license of Moontrader and start saving on trading fees at Binance, Bybit, and OKX. It only takes six simple steps to get your license, plus enjoy up to 30% off trading commissions.
Moontrader Team
Jun 28, 2025
WSOT
Bybit
Tournament

Join the Moontrader Team at WSOT 2025 by Bybit

WSOT 2025 is the largest trading tournament on Bybit. Teams compete based on P&L% and share a total prize pool of up to 3,600,000 USDT. We’re building our own squad and inviting traders to join!
Moontrader Team
Aug 18, 2025
Features
Tips
Settings

Moontrader Features for Smart Trading

We explain how to optimize your trading using Moontrader's built-in tools. Part 4.
Moontrader Team
Jul 24, 2025
Trading terminal free
Bonuses
Referral Links

Moontrader for Free – Step-by-Step Guide 2025

Get everything you need to activate the unlimited license of Moontrader and start saving on trading fees at Binance, Bybit, and OKX. It only takes six simple steps to get your license, plus enjoy up to 30% off trading commissions.
Moontrader Team
Jun 28, 2025
Moontrader for free
Exchange accounts
Referral links

Already Have an Exchange Account? Here's How to Get Moontrader for Free and Receive Commission Bonuses

Even if your account wasn't created using a Moontrader referral link, you can still get the unlimited Terminal version for free. This guide covers all the ways you can join with existing accounts on Binance, Bybit, and OKX
Moontrader Team
Jun 26, 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