Trade on evidence, not hunches.

Data Trade Systems is an open guide to stock trading driven by data analysis: the theory behind price behaviour, the strategies built on it, and the statistics that separate a real edge from a lucky backtest.

Start with the theory Open the Strategy Lab
Illustration of stock market price charts on screens
“Stock market charts illustration” by Unknown author Unknown author, via Wikimedia Commons, CC0

Why data-driven trading?

Most trading decisions are still made on stories: a confident headline, a chart pattern that “looks like” last year’s rally, a tip from a friend. Data-driven trading replaces the story with a hypothesis that can be written down, measured on historical data and rejected if it fails. Every rule is explicit, so it can be tested before money is at risk, and every result is a number that can be compared with a simple benchmark such as buying and holding the market.

This does not make trading easy. Markets are noisy, competitive and constantly changing, and the tools of quantitative analysis are just as good at fooling you as they are at informing you. The aim of this site is to show both sides: what the data can tell you, and how to avoid hearing what you want to hear.

A strategy, end to end

The chart below is produced live by the site’s Python analytics service. A simple rule (hold the stock while its 20-day moving average is above its 50-day average) is applied to a simulated price series. The top panel shows where the rule buys and sells. The bottom panel compares the resulting equity curve with buying and holding. Transaction costs are included, and every signal is acted on only on the following day, so the rule never uses information it would not have had.

A moving-average crossover rule, from signal to equity curve.
A moving-average crossover rule, from signal to equity curve. Chart generated by the Data Trade Systems Python analytics service from simulated data (CC BY-SA 4.0).

Notice what the comparison reveals: the rule sits out some of the deepest declines but also gives back gains each time a trend fades and the averages cross back. Whether that trade-off is worth it is exactly the kind of question this site teaches you to answer with data. Try other rules and parameters in the Strategy Lab.

The trading floor of the Frankfurt Stock Exchange with its large index display
“Frankfurt Stock Exchange (Ank Kumar) 03” by Ank Kumar, via Wikimedia Commons, CC BY-SA 4.0

The data-driven workflow

  1. Observe. Start from an economic or behavioural reason why prices might be predictable, such as slow diffusion of news, forced selling or risk premia.
  2. Formalise. Turn the idea into unambiguous rules: entry, exit, position size, universe and costs.
  3. Test. Run the rules on historical data while guarding against look-ahead bias, survivorship bias and overfitting.
  4. Validate. Confirm the result out of sample, in walk-forward tests and on other markets.
  5. Size & control risk. Decide how much capital to put at risk, and under what conditions to stop.
  6. Monitor. Compare live results with expectations, because edges decay as they become known.

Educational content only. Nothing on Data Trade Systems is investment advice. All charts use simulated prices so they can be reproduced and freely licensed, and simulated or historical performance does not predict future results.

How this site is built

Data Trade Systems runs on WordPress for content and a Python (FastAPI, pandas, matplotlib) service for anything computational: indicator calculations, strategy backtests, chart rendering and the interactive lab. Images are sourced from Wikimedia Commons under Creative Commons or public-domain licences and credited beneath each figure. See Sources & Credits for the full list.