u/TradeReign

I built a tool that enforces my trading rules automatically because I got tired of relying on willpower

I built a tool that enforces my trading rules automatically because I got tired of relying on willpower

This is for "Software Sunday".

www.trade-reign.com

Like a lot of traders, my biggest issue wasn't my strategy.

It was breaking my own rules once emotions kicked in.

I was doing things like:

  • moving stops farther away
  • revenge trading after a loss
  • taking “just one more trade”
  • adding to losers
  • exiting winners early out of fear
  • disabling my own rules mid-session

After doing this to myself enough times, I ended up building a web app called TradeReign specifically to enforce trading discipline automatically on Tradovate accounts. And no this is not AI vibecoded slop. I know coding and development. I created a 50k line ninjatrader strategy on my own and this app was coded by me with some AI assistance; not vibecoded.

It works on any software trading platform that supports Tradovate, like NinjaTrader, TradingView, and Tradovates own web trading platform. I have a handful of users already testing it daily and the feedback is great so far.

The basic idea is:

You configure your rules BEFORE the session starts, and the software monitors your account in real time and reacts if you violate them.

Some examples:

  • Move your stop farther away → it snaps back automatically
  • Add to a losing position → flatten instantly
  • Exceed max daily loss → lock trading
  • Revenge trade during cooldown → flatten immediately
  • Trade during FOMC/CPI blackout window → blocked
  • Exit trades early repeatedly → can trigger penalties/lockouts
  • Break max trade count → session lockout

There’s also a “Commitment Mode” where once enabled, you cannot disable the rules until the trading session ends.

A few things that make it different from journaling/tracking apps:

  • It’s reactive/enforcement based, not just analytics after the damage is already done
  • It works live during trading
  • It’s built around behavioral mistakes rather than strategy optimization
  • It supports both discretionary traders and people running algos
  • It monitors directly through Tradovate integration

Some other features:

  • configurable enforcement rules
  • News blackout windows
  • Stop/target protection
  • Prop-firm friendly risk controls
  • Strategy protection (example: flatten if an algo opens a position without a stop attached)
  • Violation/event logging
  • Economic calendar integration

Current support:

  • Any prop firm that supports Tradovate.
  • Apex
  • My Funded Futures
  • TickTickTrader
  • Elite Trader Funding
  • Take Profit Trader
  • And more...

I originally built it for myself because I realized I could not reliably trade discretionary without some kind of mechanical accountability layer. I aim to trade mechanically and this helps me to do that.

Below is a video from the website on stop enforcement. It shows the user trying to move their stop further away from it's orinally set position but it gets rejected. Can be done on targets as well but in reverse (ie moving it closer to entry on a fear based exit).

https://reddit.com/link/1t9e5hw/video/vvrskwn8ye0h1/player

Below is the dashboard. It also has economic events with severity.

https://preview.redd.it/1x0m9z1aye0h1.png?width=1778&format=png&auto=webp&s=4792b666ae3a1cdb308ab89084588a2899072578

reddit.com
u/TradeReign — 3 days ago
▲ 12 r/ninjatrader+1 crossposts

Free NinjaTrader Watchdog Script: Auto-restarts NT and re-enables your strategy if it freezes or crashes

I put together a free NinjaTrader watchdog script package for anyone running automated or semi-automated strategies on NinjaTrader 8.

It’s a local Windows PowerShell toolkit that can:

  • monitor whether NinjaTrader is running
  • detect when NinjaTrader stops responding
  • watch for a stale strategy heartbeat file
  • restart NinjaTrader after a crash/freeze
  • log back in
  • click the strategy “Enabled” checkbox again
  • send optional Pushover alerts

Important note: your NinjaScript strategy needs to write a simple heartbeat text file while it runs. The download includes a copy/paste NinjaScript heartbeat snippet and setup instructions for that.

You’ll also need to customize things like your NinjaTrader path, monitor/window placement, strategy heartbeat path, and the click offset for the Enabled checkbox.

It’s free and runs locally on your own machine:

https://trade-reign.com/ninjatrader-watchdog

Obvious disclaimer: test it on sim/demo first. It uses UI automation, so screen layout matters, and the heartbeat file is what tells the watchdog your strategy is still alive.

u/TradeReign — 4 days ago