How a personal daily lockout is set
A firm's daily loss limit is the line that ends your day or your account. Your personal lockout sits inside it, so a late fill or a gap never turns a bad day into a broken rule.
Lockout = Binding limit × (1 − Buffer %)
Losses before lockout = floor(Lockout ÷ Loss per trade)
Loss that hits the limit = ceil(Binding limit ÷ Loss per trade)
Worst day = min(Losses before lockout, Trades per day) × Loss per trade
Example: a $1,000 daily limit with a 20% buffer gives an $800 lockout. At $170 per full loss, four losses ($680) fit, and the fifth would cross $800, so you stop after the fourth. The firm's limit would be hit on loss number six ($1,020). Under your rules the worst day is $680, leaving $320 of cushion for slippage.
If you also cap trades at three per day, the cap ends the day first and your worst day becomes $510. That is fine: whichever rule triggers first wins.
When your remaining drawdown is smaller than the daily limit, the drawdown is the real limit. A $1,000 daily limit means nothing if only $700 separates you from the max-loss line, so the calculator uses the smaller number.
A lockout only works if it is enforced. In NinjaTrader 8 that means a strategy or account-level rule that flattens and blocks new orders when the loss is reached, not a sticky note on the monitor.