Free Windows script package
NinjaTrader Watchdog
A local PowerShell toolkit that watches NinjaTrader during market hours, restarts it when it crashes or stops responding, logs back in, and attempts to re-enable your strategy.
What It Watches
The watchdog checks whether NinjaTrader is running, whether the process is responding, and whether your strategy heartbeat file is fresh.
How Recovery Works
If recovery is needed, it closes or restarts NinjaTrader, runs the auto-login script, clicks the strategy enable checkbox, and waits for a fresh heartbeat.
What You Customize
Downloaders edit `config.ps1` for their NinjaTrader path, password, heartbeat file, monitor placement, click offsets, market hours, and optional Pushover alerts.
Strategy Heartbeat Required
Your NinjaScript strategy needs to write a small heartbeat text file while it runs. The download includes a copy-paste NinjaScript example and setup notes.
Included Files
NT-Watchdog.ps1
Main health checker and recovery coordinator.
NT-AutoLogin.ps1
Opens NinjaTrader and types the configured password.
NT-EnableStrategy.ps1
Clicks the first visible strategy row's Enabled checkbox.
NT-SetupTask.ps1
Installs the scheduled Windows task.
market-schedule.csv
Local holiday and early-close overrides.
README.md
Setup, heartbeat snippet, tuning, testing, and uninstall instructions.