Install and set up Prop Rule Guard
For NinjaTrader 8 (8.1 or later). Prop Rule Guard only sounds alarms. It never places, changes or closes an order. You decide what to do.
1. Install
- Open NinjaTrader 8.
- In the Control Center, click Tools → Import → NinjaScript Add-On…
- Pick the file you downloaded,
PropRuleGuard.zip, and click Open. Don't unzip it first. - NinjaTrader says the import worked. Click OK.
- If it says it can't import, close every chart and try again. Still stuck? Send us a screenshot of the message.
2. Put it on a chart
- Open a chart of the contract you trade (for example MNQ 12-26). Any time frame works.
- Right-click the chart and choose Indicators…
- In the list on the left, double-click Prop Rule Guard.
- Fill in the settings (section 3) and click OK.
- A box appears at the top left of the chart: "Prop Rule Guard 1.0.0 (alarms only; you decide what to do)". It starts checking
once the chart has live data.
Put it on one chart for each contract you trade. All charts share their alarms, so each problem sounds once.
3. Settings
Every limit is yours. Each one is off (0 or blank) until you set it. Use the numbers from your firm's rules page and your own plan.
| Group | Setting | What to enter |
|---|---|---|
| 1. Accounts | Accounts to watch | Account names exactly as NinjaTrader shows them, separated by commas. Blank = every connected account |
| Ignore simulation accounts | Tick to skip accounts whose name starts with "Sim" | |
| 2. Your limits | Max loss for one trade, $ | The most one trade may lose |
| Warn at this % of a loss limit | A first warning before the limit (default 75%) | |
| Daily loss limit, $ | The most the account may lose today, closed plus open | |
| Contract limit, minis | The most contracts the account may hold. Micros count as part of a mini | |
| Micros per mini | Usually 10. Check your firm's rule | |
| Minutes a losing trade may stay open | Your own time limit | |
| 3. Drawdown floor | Drawdown floor per account | Account = balance; Account2 = balance. Copy the floor (liquidation threshold) from your firm's dashboard. A trailing floor moves, so update this when your firm's number changes |
| Alarm when this many $ are left above the floor | Default $500. A warning comes at twice this | |
| 4. Give-back | Give-back alarm once a trade has been up $ | Off unless set |
| Alarm when this % is given back | Default 50% | |
| 5. Long/short across accounts | Alarm when one account is long and another short | On by default. Many prop firms prohibit this |
| Count all US stock-index futures as one market | On = long MNQ in one account and short MES in another also alarms. Turn off if your firm only counts the same contract | |
| 6. Alerts | Sound file | A file in NinjaTrader's sounds folder, or a full path. Blank = no sound |
| Repeat a limit alarm every N seconds | Default 20. 0 = once | |
| Phone alerts: your ntfy topic | Optional, see section 4 |
Important:
- Daily P&L and net liquidation come from NinjaTrader's account data. Check once that they match your firm's dashboard. Firms compute drawdown in their own ways (end of day, intraday, trailing), and only your firm's number counts.
- With several account types, add the guard twice with different "Accounts to watch" and different limits.
- Alarms need NinjaTrader open, connected and with a live chart. They can't fire if NinjaTrader, your connection or your computer is down.
4. Phone alerts (optional)
- Install the free ntfy app on your phone (from ntfy.sh).
- In the app, subscribe to a topic name that's hard to guess, for example
guard-k7q2-yourname. Anyone who knows a topic name
can read it.
- Type the same topic into Phone alerts: your ntfy topic and click OK.
- Each alarm is sent once to your phone. Prop Rule Guard sends only the alarm text: the account name, the contract and the P&L.
5. What the colors mean
- Black box: no alarms.
- Yellow (WARNING): you're near a limit, or past a limit with no position open.
- Red (LIMIT): a limit is reached while a position is open. It repeats until the cause is gone.
6. Remove it
Right-click the chart → Indicators… → select Prop Rule Guard → Remove. To uninstall, use Tools → Remove NinjaScript Assembly… and pick PropRuleGuard.