NineFifteenAM

Mistakes that cost me

What I got wrong in month one

5 min readUpdated 18 October 2026By NineFifteenAM

Mistakes from my trading bot's first weeks and first live month: the wrong expiry, stops facing the wrong way, a backtest I believed, and a misleading win rate.

Short answer

In its first weeks my trading bot traded the monthly option instead of the weekly one, set some stop-losses for the wrong direction, got stuck in an error loop after one bad candle, and could crash when I pressed my own manual exit button. In the first live month I trusted a backtest that fell apart going forward, and read a 72% win rate as success when the average loss was nearly four times the average win. All four bugs were fixed within days; the reading mistakes are now tracked in the monthly bot scorecard.

My bot's first live month won 72% of its trades and still didn't make money. That's the mistake everyone notices. The quieter ones came earlier, in the weeks before any real money was involved, and a couple only surfaced months later.

This is the list, in the order I made them. Each one says what happened and what changed afterwards.

In the first weeks

The bot traded the wrong expiry

The bot was meant to trade the weekly Nifty option. For its first days it traded the monthly one. A bug in how the expiry date was turned into a contract symbol always produced the monthly format, so the search for "the nearest weekly contract" quietly returned something else. Nothing crashed, because a wrong contract that trades normally throws no error.

What changed: fixed on 24 February. The contract lookup now also matches on expiry date, strike and option type, so a symbol-format mistake can't silently pick the wrong contract.

Some stops pointed the wrong way

When a trade's direction was changed after the original signal, the stop-loss was still worked out from the original direction. A call trade could end up with a stop that belonged on a put.

What changed: fixed on 25 February. The stop is now calculated from the direction of the trade actually taken.

One bad candle broke the loop

A function that ran at the end of every five-minute candle hit an error on one malformed candle. Nothing caught it, so the error fired again on the next candle, and the next. One data problem became a repeating failure.

What changed: fixed on 25 February. An error on one candle is now caught and logged, and the bot moves on to the next.

My own button crashed the bot

The dashboard has a manual exit button. The trade manager checked the position and used it a moment later. If I pressed the button in between, the position was gone and the manager hit an empty value.

What changed: fixed on 25 February, by having the trade manager keep its own copy of the position while it works.

In the first live month

I believed a backtest

The classic 15-minute opening range breakout arrived with a backtest of 530 trades, a 68% win rate and a profit factor of 7.9. Run forward, 45 trades won 20% of the time, and the average trade was a loser of roughly the same size as the average winner had been in the backtest.

What changed: I stopped trusting smooth curves and started replaying real sessions, with costs and realistic fills. The guide to backtesting covers the whole story.

I read the win rate first

In April, 52 of 72 live trade records won. A 72% win rate felt like proof. But the average loss was nearly four times the average win, a payoff ratio of 0.26. At that payoff, break-even needs a win rate of about 79%. I was reading the first number and skipping the second.

What changed: every monthly bot scorecard now puts win rate, payoff ratio and profit factor side by side, so neither number gets read alone.

I started closing trades by hand

Two of April's live records were closed by hand from the dashboard. It crept up from there: 5 in May, 2 in June, 1 in July, then 16 in August and 17 in September — 43 of 413 live records to the end of September, which I went through properly in what my manual exits cost me.

What changed: manual exits are logged with a timestamp and counted in every monthly scorecard. The paper vs live post has the full numbers.

Found later

A column didn't mean what its name said

My trade log has a column called slippage. For months I read it as the price lost in the fill. It actually records how many index points the market moved between the signal and the order, and it's filled in for paper trades as well as live ones. I found out in September.

What changed: I now treat real fill slippage as unmeasured, and say so wherever it comes up.

How I'd catch each one earlier

Writing them out, the same thing is true of all seven: none of them raised an error, so no alarm could have fired. What would have caught them is a check that compares what the bot did against what it was supposed to do. These are the checks I would add on day one if I started again.

What went wrong The check that would have caught it Where it shows up
Wrong expiry traded Assert the contract's expiry date is the one the strategy asked for, before the order goes out At order placement, as a rejection rather than a fill
Stop on the wrong side Assert the stop is below entry for a long and above it for a short At order placement
Error loop on one bad candle Count errors per function per session and alert above a threshold In the error log, within minutes
Manual exit crashed the manager Re-read the position inside the exit path instead of trusting a value read earlier In the error log, on the first press
Backtest that didn't hold up Compare live win rate and payoff against the backtest's, per strategy, every week In the weekly review
Win rate read alone Report win rate, payoff ratio and profit factor together, never one of them In the scorecard
Column that didn't mean its name A written definition for every logged field, checked against what writes to it In the data dictionary

The first four are assertions: cheap to write, and they fail loudly at the moment the mistake happens. The last three are review habits, and they are slower, because they only show up in a comparison over time. I would rather have the assertions.

I cannot say how many trades the wrong-expiry bug touched, because the contract symbol it stored is the only record of which contract it picked, and I did not keep a separate note of what the strategy had asked for. That is exactly the gap the first row above closes.

What ties them together

Nearly every item here was quiet. The bot ran, the logs filled up, and the trades looked reasonable. Each mistake was found by reading the log closely, not by an alarm going off, which is why the log review is now the part of the day I spend the most time on.

The first monthly scorecard is May 2026, a month in which the main strategy's wins outweighed its losses before charges.

This post describes my own mistakes building and running a trading system, for information only. It is not investment advice, and past results say nothing certain about the future. I am not registered with SEBI as an investment adviser or research analyst.

Questions people ask me

What mistakes did you make in the first month of your trading bot?

The bot traded the wrong expiry, some stop-losses used the wrong direction, an error in one function repeated in a loop, and a manual exit from the dashboard could crash the trade manager. I also trusted a backtest that didn't hold up when the strategy ran forward, and judged my first live month by its win rate.

Why can a 72% win rate still lose money?

Because the size of wins and losses matters as much as how often you win. In my first live month the average loss was nearly four times the average win (a payoff ratio of 0.26). At that payoff you need to win about 79% of the time just to break even.

Did any of these mistakes cost real money?

The four bugs were found and fixed in paper mode in February, weeks before the first live trade on 9 April. The mistakes in how I read results, and the manual exits, happened with real money.

mistakestrading botbugslessonsfirst monthwin rate
N

NineFifteenAM

One trader building an options bot for Indian index markets since early 2026. I write down how it is built, what broke, and what it cost — no tips, no calls, no returns.

Related

01 Oct 2026
Trading bot scorecard: September 2026September 2026: my bot's main strategy won back more than it lost before charges, and the last three weeks beat the first two. Exits by hand need fixing.
Bot scorecard
01 Jun 2026
Trading bot scorecard: May 2026May 2026: my bot's main strategy won back slightly more than it lost, before charges, and paper trading agreed. One trade in a new strategy cost the month.
Bot scorecard
07 Oct 2026
What happens when I close my bot's trades by hand? My dataI closed 43 of 413 live trades by hand between April and September 2026. 33 of them came in August and September, and most came before noon.
The journey