Independent engineering practice

Your bot is blind for the first 15 minutes of the open.

I diagnose and fix market-data and broker-API failures in live trading systems.

Book a free 30-minute lookNo retainer · no lock-in
Session open--:--:--
  • Bar feed

    stale, prior close

    unresolved
  • Order bridge

    process up, no fills

    unresolved
  • Backtest vs live

    lookahead, sign error

    corrected

What a normal morning looks like

For prop firm traders, small quant teams, and developers running automated trading systems who fight unreliable data feeds and order routing.

Engineering services only

Three failures I get called about

01

Bar feed freezes at the open.

The monitor prints BAR FEED STALE at 09:30 with the prior session's close. Restarting sometimes fixes it, nobody knows why, so the fix never sticks.

02

The order says filled but nothing executed.

The start script reports every process healthy while signals fire into nothing. The check passed; the execution path was already dead.

03

Backtest numbers that don't survive live.

A same-bar lookahead or a sign error inflates a win rate. You find out with real money instead of in the script.

From the log

Case 01

Bar feed froze at the open, and the standard fix was wrong

Problem

a live monitor reported BAR FEED STALE at 09:30, last bar from the prior session's close. Every forum answer says relog into TWS.

Found

TWS was healthy. A direct ib_insync query returned the correct 17 RTH bars. The 09:25 startup had subscribed before the open, when the newest bar legitimately was the prior close, and that subscription never picked up the new session. The bot's own re-establish-after-stall request returned the same stale history, pointing at cached client state on the existing clientId. Only a new process got fresh data.

Result

recovery went from 20+ minutes and a lost session down to a restart at 09:35. Same signature across five sessions before the mechanism was proven.

Case 02

The process that said BOTH LIVE was dead

Problem

the start script printed BOTH LIVE for two order-routing bridges. Three signals fired that morning. Zero trades executed.

Found

launchd tears down the whole process group when the job exits, so both bridges died at 09:15:17, seconds after being verified. The check ran at the wrong moment, and the health check only parsed the main bot log while the bridges logged elsewhere, so the worst fault of the day was invisible to monitoring.

Result

the failure is now characterised and detectable through a separate liveness assertion, checking that the process exists and that a byte offset is advancing to prove new data is being consumed. A dead bridge can no longer pass as live.

Case 03

The backtest looked better than the strategy was

Problem

a multi-year backtest reported results strong enough to justify risking real money. On its face the strategy looked validated.

Found

three separate defects, each of which flattered the result. Exits were evaluated from the signal bar instead of the bar the limit order actually filled on, so trades that never filled still produced outcomes. A short-side P&L sign error meant losses were added to the total instead of subtracted from it. And slippage was included inside the stop-trigger condition rather than only in the fill price, which gave every trade a few extra points of room before it could register as a loss.

Result

corrected on identical data, the honest result was materially worse than the reported one. The strategy was still worth running, but only once it was sized against the real edge rather than the flattering one. The detection method is now a fixed checklist that runs before any number is quoted.

How it works

Free 30-minute diagnostic.

Fixed price per fix.

No retainer, no lock-in.

If I can't find it, you don't pay for the search.

Contact

Tell me what it's doing wrong.

First reply
Straight to the symptom
Diagnostic
30 minutes, free
Scope
Engineering only

If you have a log line, paste it.

No mailing list