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.

Download ZIPBack to TradeReign

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.

Use caution. This is a local automation toolkit, not a TradeReign cloud feature. It uses Windows UI automation and should be tested on a sim/demo environment before relying on it with real money. Keep your private `config.ps1` file off public websites and repositories.
Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees. Full disclosures