Skip to main content
Enter TitanOS
Demo project: Python stock/market scanner with backtest report

Python market scanner with a tested backtest report

A typical scanner job: scan a list of stocks, filter them on a few rules, rank what passes, chart it and prove the numbers with a backtest. The report has to be educational only, with no advice, and the code has to be something the client can rerun and trust.

0.69 s
to scan, filter, rank and backtest 60 synthetic symbols over 500 days each
9 of 30
symbols that passed the filters beat buy and hold; average strategy return +29.0% against +49.5% for buy and hold
6
tests pass, including one that catches lookahead bias

Evidence label: SYNTHETIC

Demo project. I built this to show how I work on scanner jobs. There is no client, and the data is synthetic.

How fast

A scanner like this demo, on your data and rules, usually takes a few days. A first working version with the ranked table comes early, so you can change the filters before I polish the report.

Fast is nice. What did it cost?

What it cost

No client money and no paid services were involved. The demo was built and run on my own machine, and no dollar figure per build is claimed. Anything that runs live for a client runs on the client's own accounts and keys, so their usage is never fronted by us.

What was built

  • A single Python module using only numpy for the maths. It generates 60 synthetic symbols with 500 trading days of open, high, low, close and volume, applies four filters, ranks the survivors by three-month momentum, runs a moving-average backtest on each, and writes a ranked table, a price chart and a summary page. Every page carries a "Demo project, synthetic data, not financial advice" label.
  • The filters are a minimum price, a minimum 20-day average volume, RSI(14) at or below 75, and the 20-day average above the 50-day. The backtest is long when the 20-day average sits above the 50-day. The signal is lagged one day so it never uses tomorrow's price, and each position change costs 0.05%. I wrote six tests, including one that changes prices after day 250 and checks that earlier results do not move. That test catches lookahead bias, a common way a backtest flatters itself. The reports are plain HTML with inline charts, so they open anywhere and I screenshot them with a headless browser for the images above.
  • What a client gets: The Python source and tests, with a short note on how to rerun it.
  • Your own filters, ranking rule and data source swapped in. I would use licensed or public data you have the right to use.
  • Charts and a report in the format you want, with an honest read on what the backtest does and does not show.
  • A clear educational disclaimer on every page, because it is not financial advice.

Cheap and fast still has to work. How do we know it does?

How it was checked

Measured in this demo only, on synthetic data:. 60 symbols by 500 days scanned, filtered, ranked and backtested in 0.69 seconds. 30 of 60 symbols passed the filters. Only 9 of those 30 beat buy and hold. The average strategy return was +29.0% against +49.5% for buy and hold. All 6 tests pass. I left that last result in on purpose. A simple trend rule often trails buy and hold, and a report that hides it is not worth much. The synthetic prices say nothing about real markets, and I make no claim about future returns.

Screens from the working app

Would it be okay if we talked about something like this for your business? A free consultation is the first step, and a no is welcome.

Book a free consultationAll case studies
Book a free call