Before the trading bot, count the rows.
A tiny moving-average experiment produced three toy orders. A careless report turned them into six.

A little Python, a laptop, and a system that follows rules while you get on with your day: algorithmic trading has an appealing plot. The spreadsheet sometimes supplies the comedy.
A public forum discussion about moving-average crossovers prompted our own small experiment. We generated 420 artificial prices and used a simplified 50/200-observation-average idea: long or flat, with changes recorded on the next synthetic step. This was not a market backtest.
The script created three toy orders, each assigned 100 bookkeeping units. Then we joined the order table to a label table containing two labels for the same strategy. Three orders became six report rows; the summed order amounts jumped from 300 to 600. No extra order had happened. Certainly no extra profit.
Counting distinct order IDs exposed the problem. Filtering with EXISTS instead of that row-multiplying JOIN restored three rows and 300 units. The useful skill was checking keys, table relationships and totals before trusting a number.
Try the Data quality exercise below: reported order value doubles overnight. How would you tell genuine growth from duplicate inputs or a bad JOIN?
Skills to explore
Original analysis · AI-assisted writing and imagery.
Sources and context
Journey So Far independently wrote and ran a bounded Python/SQLite demonstration on 24 November 2026 using explicitly synthetic data. The forum supplied only a generic moving-average idea; its code and results were not copied, and this is not a reproduction of its trading system. There are no real trades, market returns or performance claims. The image is an AI-generated fictional scene.
We connect this story to supporting skills and exercises. This is our editorial interpretation, not proof of a job opening or income opportunity.
Read the source