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:

  • Create a separate copy of the MT folder specifically for Watchdog
  • Download the folder with the profile you want to monitor from the server
  • 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!
  • Launch MT from this folder, edit the profile to set "Client + Console" mode
  • 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)
  • Save the profile changes
  • 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!
  • Launch the core you want to monitor and the client to connect to it
  • Upload the Watchdog build to the VPS and launch the core with the --watchdog-mode flag (on Linux, this is typically ./MTCore --watchdog-mode)
  • For testing, open a position and kill the core. Watchdog should quickly detect the core failure, close the position, and remove orders

Launching WatchDog on a Separate VPS with Multiple Profiles

Preliminary Setup

Before starting, make sure to complete the following steps:

  • Create a new folder where the client will be located.
  • Copy all profiles (including licenses) from your VPS and move them into the duplicate client.
  • Open the client and enter the VPS IP address in each profile.
Setting Up WatchDog on a Separate VPS

For WatchDog to function correctly, you need to:

  • Install the latest version of the core (MTCore).
  • Transfer all profiles together with their licenses from the prepared client to the corresponding directory:

Linux:

~/.config/moontrader-data/data

Windows:

data

Launching WatchDog

After transferring the profiles, start the core in WatchDog mode using the command:

./MTCore --watchdog-mode

Check us out on

To learn more

The latest news, technology and resources from our team.
Explanation
Strategy
System

Martingale in Trading

From gambling origins to algorithmic trading — explore how Martingale works on spot and futures markets
MoonTrader Team
Oct 20, 2025
Slang
Key terms
Explained

Crypto Trading Terms

Trading is easier when you understand the market’s language. Our crypto trader’s glossary covers liquidity, orders, charts, FOMO, and even slang — all explained simply.
MoonTrader Team
Sep 16, 2025
Trading psychology
Trading books
Exercises

Trading Psychology

Trading psychology is the key to consistent results. This article covers the best books and practical exercises by Brett Steenbarger and J. Rande Howell, plus a trader’s checklist. Learn techniques to reduce emotional influence and trade systematically.
MoonTrader Team
Sep 9, 2025
Explanation
Strategy
System

Martingale in Trading

From gambling origins to algorithmic trading — explore how Martingale works on spot and futures markets
MoonTrader Team
Oct 20, 2025
Slang
Key terms
Explained

Crypto Trading Terms

Trading is easier when you understand the market’s language. Our crypto trader’s glossary covers liquidity, orders, charts, FOMO, and even slang — all explained simply.
MoonTrader Team
Sep 16, 2025
Trading psychology
Trading books
Exercises

Trading Psychology

Trading psychology is the key to consistent results. This article covers the best books and practical exercises by Brett Steenbarger and J. Rande Howell, plus a trader’s checklist. Learn techniques to reduce emotional influence and trade systematically.
MoonTrader Team
Sep 9, 2025
Tick сhart
Candlestick
Time chart

Tick Chart vs Candlestick with MoonTrader

What is a tick chart and why do scalpers love it? In this article we explain how tick chart trading works, compare it to candlestick time charts, and show how traders use it in a scalping strategy. You’ll also learn how to use tick chart software effectively and see practical examples of how it can improve day trading decisions.
MoonTrader Team
Aug 30, 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