NineFifteenAM

Best practices

Nine checks before your bot touches real money

1 min readBy Shubham

The pre-live checklist I wish someone had handed me: paper-live parity, kill switches, config hashes, and the failure I only caught on the eighth check.

Going live is not a deploy. It is a decision to let software spend your money while you are not watching. This is the list I run every time, in order.

The checks

  1. Every failure path has a class and a test. Transient, terminal, ambiguous. No path falls through to a bare retry.
  2. Risk counters live outside the code they limit. A trade cap enforced inside the function placing trades is not a cap.
  3. The running config matches the committed config. Log the hash at startup and refuse to start on a mismatch.
  4. The kill switch fires in a simulation of today's worst case. Test it, do not assume it.
  5. Paper fills are priced against real order books. Mid-price fills flatter everything downstream.
  6. The clock is right, and the calendar knows about holidays. Including expiry days and special sessions.
  7. Data gaps raise an alarm rather than a shrug. A sequence check on the feed, and a loud failure when it breaks.
  8. Position state survives a restart. Kill the process mid-session in paper mode and see what comes back.
  9. You can replay the day. If you cannot reconstruct what the bot saw, you cannot debug what it did.

Check eight is the one that caught me. The process restarted cleanly and then opened a second position because it had forgotten the first.

riskchecklistdeploymenttesting
S

Shubham

I trade Indian markets and write the software that does it for me. I publish the engineering and the mistakes twice a week — no tips, no calls, no returns.

The Saturday letter

One email a week: what I built, what broke, and the lesson I'd pay money to have learned earlier.

Free. Unsubscribe anytime. No tips, no spam.

Related

18 Sept 2026
The ₹40,000 bug I shipped on a FridayA missing check turned one rejected order into eleven retries in nine seconds. The code path, the logs, and the guard that now makes it impossible.
Mistakes that cost me
26 Sept 2026
Algo trading in India: the rules, the cost, and what to do firstWhat the law requires of a retail algo trader in India, what a system costs to run after the April 2026 STT change, and the order to build it in.
Guides
26 Sept 2026
Why my backtest liedOne sentence that would make someone click this in search results.
The journey