BotGuard is a small helper Expert Advisor for anyone who runs trading robots on a VPS. It never opens, closes or modifies trades. Its only job is to report the health of the terminal, so that problems are noticed in minutes instead of days.

Figure 1. BotGuard heartbeat and equity log on a VPS terminal
What it does
Why a heartbeat file
A terminal that has frozen or crashed cannot send alerts about itself. Because the heartbeat file is rewritten every 30 seconds, any external monitor (a PowerShell script, a scheduled task or another program) only needs to check the file's age. If the file stops updating, the terminal is frozen or BotGuard was removed, and the monitor can restart MetaTrader 5 and notify you. The file is written to a temporary name first and then swapped in, so a monitor never reads a half-written file.
Input parameters
How to use
Tested on MetaTrader 5 build 6241 with a crash test and a freeze test: the external watchdog restarted the terminal and the heartbeat resumed within 15 seconds.
Fractal Dimension Trend Strength Index
A rolling, Katz-style fractal dimension of price that collapses toward 1.0 during directional moves and rises toward 2.0 during choppy, range-bound action, giving traders a single number for how "trendy" the current market is.
Risk Calculator Panel with Draggable SL and TP Lines
Position size calculator for MT5. Drag the SL and TP lines on the chart and the panel shows the lot size for your risk %, the real risk after rounding, the reward and R:R. Never trades.
Prop Firm Equity Guard - Daily Loss Limit and Max Drawdown Protection
Closes all trades and blocks new ones when the daily loss limit, maximum loss or profit target is reached. Built for prop firm challenges. Works with manual trading and any other EA.
Session High Low - Asian, London and New York Range Boxes
Draws the Asian, London and New York session ranges as colored boxes with their high and low, plus dotted extension lines for breakout trading. Same ranges on every timeframe up to H1.