Docs / Ukemi

Ukemi - Strategy Safety Net

Catch the failures that happen while you are not watching: dropped feeds, silently disabled strategies, naked positions with no stop, and limits creeping up on you.

Last updated 2026-09-17

Ukemi (受け身) is the judo art of falling safely. The product does the same job for automated trading: it assumes something will go wrong and makes sure the fall does not cost you the account.

Four failures cause most automated-trading damage, and all four happen quietly:

  • A strategy gets disabled by NinjaTrader after a connection blip and never comes back, so your position sits unmanaged.
  • The data feed drops or stalls, and your strategy is trading on stale bars.
  • A fill leaves you with a position and no protective stop.
  • Your account drifts toward a daily-loss or drawdown limit while you are away.

Ukemi watches for all four and, depending on how you configure it, alerts you, flattens, disables, or recovers. It runs as a background service: it starts when the NinjaTrader Control Center opens and keeps monitoring for the whole session, whether or not its window is open.

Ukemi has three tabs. Protect is where you arm it and make the everyday choices in plain language. Strategies is the live triage list - is anything unsafe right now. Fine-tune holds the exact actions and thresholds behind the Protect settings.

Protect

The Ukemi Protect tab: a "You're protected" header with an arm toggle, a plain-terms summary, and the four everyday choices The Protect tab. The header shows how many strategies are covered on real and sim accounts, and a running count of how many times Ukemi has stepped in today.

The green banner at the top is your arm switch and your reassurance in one place: You’re protected, with the count of protected strategies on real and sim accounts. The In plain terms box states exactly what Ukemi will do, in one sentence, so there is never a gap between what you set and what you think you set.

Four choices run the whole product:

ControlWhat it doesStart with
When something goes wrongAlert & step in = Ukemi flattens or disables the strategy itself. Just alert me = it only tells you.Just alert me for the first week, then Alert & step in.
Which limits should I watch?With Fudoshin on, Ukemi reuses the loss and drawdown limits you already set in Fudoshin, so you configure them once. Off = use your own values on the Fine-tune tab.On, if you run Fudoshin.
Bring strategies back automaticallyWhen it's safe re-enables a strategy that NinjaTrader (or Ukemi) disabled, once conditions clear. Off leaves it stopped until you act.Off while you learn it, then When it's safe.
Protect new strategies automaticallyOn protects new strategies on real accounts the moment they appear. Sims always need an explicit Protect.Off (protect each yourself) until you trust it.

Fine-tune timing & thresholds at the bottom opens the Fine-tune tab for the exact numbers.

Ukemi steps in only on real risk. A strategy you disabled on purpose is left off - Ukemi will not fight your own decision. It re-enables only what a disconnect or a logged error stopped.

Strategies

The Ukemi Strategies tab: a worst-first list of running strategies with state badges and per-strategy actions, plus alerts and a live-incidents panel The Strategies tab answers one question - is anything unsafe right now - by sorting the worst state to the top.

The account chips across the top show which accounts are monitored. Below them, one card per strategy, each with a state badge:

BadgeMeaningWhat you do
Running & protectedUkemi is watching this one.Nothing. This is the goal state.
Running, not protectedLive but Ukemi is not covering it.Flip its Protect toggle if you want it watched.
Loaded (idle)Loaded in NinjaTrader but not enabled.Re-enable now, or Disable to clear it, or pick a recovery from the dropdown.

When a strategy’s position drifts from the account’s (“strategy holds 1 but the account holds 0”), the card shows Reconcile and Flatten now. Reconcile squares the mismatch; Ukemi will not auto-re-enable through a desync, because re-enabling into a mismatch is how you get two positions fighting each other.

Filters (Type, Protected, State) and Only active narrow the list on a busy machine. The Alerts panel on the lower left logs what Ukemi did; the Live panel on the lower right is the at-a-glance “all monitored strategies are running and reconciled” / open-incidents readout.

Fine-tune

The Ukemi Fine-tune tab: the exact per-failure action for each problem, the limit source, and the timing thresholds Fine-tune is only the numbers. Arming, the react-how choice, which limits to watch, and auto-recovery all live on Protect.

How I react to each problem

One dropdown per failure class. The Protect tab’s When something goes wrong toggle sets the first three at once; change them individually here.

ProblemFires whenSensible action
No protective stopA position has no protective stop past the grace window.Flatten closes the naked position and leaves the strategy running.
Daily-loss breachThe account hits its daily-loss limit.Flatten + disable - the usual hard daily stop.
Drawdown breachThe account breaches its trailing/max drawdown.Flatten + disable - this is what protects an eval or funded account from a blown threshold.
Default recoveryHow a stopped strategy comes back by default.Auto re-enable, Flatten then re-enable, Flatten and leave off, or Alert only. Override per strategy on its card.

Three switches sit under those:

  • Alert on a naked (no-stop) position - send an alert whenever a position is left without a protective stop, even if the action above is set to flatten or take no action.
  • Recover strategies that stop on an error - also auto-re-enable a strategy NinjaTrader disabled because it errored, not just after a disconnect. It only fires when it is safe: armed and enforced, the account flat, the recover delay elapsed, under the flap guard, and no Fudoshin lock. A strategy you disabled is always left off.
  • Recover after cycling a single feed - treat a strategy stopped because its own feed dropped and reconnected as recoverable, even if your other connections stayed up. Off by default, so only a full outage or a logged error counts.

Limits

Use the limits I set in Fudoshin reuses Fudoshin’s enforced daily-loss and drawdown numbers for any account Fudoshin manages, so you set them in one place. The Daily loss $ and Drawdown $ fields below are the fallback for accounts Fudoshin does not manage; 0 means no fallback limit.

Timing & thresholds

  • Idle strategy (min) - flag a strategy that is enabled and flat but has not traded for this long during session hours, a likely freeze. Warn-only; Ukemi never disables it for you. 0 turns the check off.
  • Data stall (sec) - seconds without a price update before Ukemi flags the feed as stalled. 30 suits liquid futures during RTH; raise it for thin or overnight markets.
  • No-stop grace (sec) - how long a position may exist without a stop before the naked rule fires. Eight seconds is long enough for a bracket to attach after a fill, short enough that a genuinely naked position does not sit there.
  • Max contracts (alert) - a runaway guard: alert when an account’s net open contracts exceed this number. 0 turns it off.
  • Disconnect hold (min) - how long a dropped strategy’s card is kept after it falls off, so it survives a brief reconnect instead of vanishing from the list.

Behind all of the recovery actions are three guardrails that make auto-recovery safe. You cannot switch them off, but two of them are tunable numbers right here:

  • Never on a mismatch. If the strategy thinks it is flat and the account is long, Ukemi alerts and waits for you rather than re-enabling. This one is fixed.
  • Recover delay (sec) - a short hold after a reconnect before anything is attempted, because a feed that just came back often goes again. Set the number to taste.
  • Max recover / hour - a cap on recovery attempts per rolling hour per strategy. After that Ukemi falls back to alerting rather than fighting a broken strategy in a loop. Raise or lower the cap as you like.

Auto re-enable drives NinjaTrader’s Control Center internals, so a future NinjaTrader version could change it. If re-enable ever stops working after a NinjaTrader update, Ukemi falls back to alerting and you re-enable manually. Tell us and we will ship a fix.

Alerts

Everything Ukemi raises goes to the Strategies tab’s Alerts panel and, if you have it, out through Kiai to your phone. This is the pairing that matters: Ukemi is most valuable when you are not looking at the screen, which is exactly when an on-screen alert is useless. Incidents are also written to a journal on disk, so you can reconstruct what happened after the fact.

A configuration that works

Week one, learning:

  • When something goes wrong: Just alert me
  • Which limits should I watch?: Fudoshin on (or your own Daily loss / Drawdown on Fine-tune)
  • Bring strategies back automatically: Off
  • Fine-tune: No protective stop Flatten; Daily-loss and Drawdown Flatten + disable; alert-on-naked on; data stall 30s; no-stop grace 8s
  • Kiai rule: critical alerts to your phone

After a week of watching it call the failures correctly, switch Protect to Alert & step in and Bring-strategies-back to When it's safe. The guardrails - position match, debounce, and flap guard - are what make that safe.

Troubleshooting

Everything says not monitored. No connected accounts. Backtest, Playback, and disconnected sim accounts always show this, and it is correct, not an error.

The Strategies tab is empty. No strategies are running in NinjaTrader. Ukemi enumerates NinjaTrader’s live strategies; if the Control Center Strategies grid is empty, so is this.

A strategy will not come back automatically. Almost always a position mismatch, which Ukemi refuses to re-enable through by design. Use Reconcile on the card, or square the position by hand, and it recovers on the next pass. Otherwise you may have hit the flap guard.

Naked-position alerts on every fill. Your grace period is shorter than the time your bracket takes to attach. Raise No-stop grace (sec) on Fine-tune.

Stall alerts overnight. Thin overnight volume can exceed a 30-second stall window legitimately. Raise Data stall (sec) or accept the noise.


Estimates and tooling only. Your prop firm's published rules are always authoritative, and nothing here is financial advice. Questions? support@ticksensei.com