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
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.
Watchdog
Guide
Manual

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.
Dec 10, 2024
Guide
Manual
Moontrader

🚀 Quick Step-by-Step guide to run the Moontrader terminal!

Ready to charge your trading game? Follow these steps to get your terminal up and running in
trading
software
features

Moontrader features to simplify your trading

We're starting a series of articles dedicated to Moontrader's most useful features! Our goal is to help you discover the full potential of the terminal and make your trading experience as effective as possible.
Nov 28, 2024
Watchdog
Guide
Manual

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.
Dec 10, 2024
Guide
Manual
Moontrader

🚀 Quick Step-by-Step guide to run the Moontrader terminal!

Ready to charge your trading game? Follow these steps to get your terminal up and running in
trading
software
features

Moontrader features to simplify your trading

We're starting a series of articles dedicated to Moontrader's most useful features! Our goal is to help you discover the full potential of the terminal and make your trading experience as effective as possible.
Nov 28, 2024
HFT
trading
software

High-Frequency Trading Software: Moontrader Terminal 

Explore high-frequency trading in cryptocurrency markets with Moontrader Terminal. Learn about advanced algorithmic strategies, risk management tools, and the impact of HFT on digital asset trading. Discover how Moontrader is reshaping crypto trading for professionals.
Oct 21, 2024

© 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