Free Python trading guides
Understand how a trading bot fits together, where market data can mislead you, and how to catch mistakes in a backtest. Start with any guide. No signup required.
Start with the big picture
A trading bot needs data, a signal, risk checks, and a way to place orders. This guide explains what each part does and how they work together.
Read the trading bot guideMake your backtests more useful
The lookahead bug that makes every backtest look brilliant
Shifting a signal by one bar is the difference between a strategy that works and one that only works because it knew the future.
Read guide →Free market data, and what it quietly costs you
Free price data is good enough to learn on and wrong in specific ways. Know which ways before you trust a backtest built on it.
Read guide →Costs turn a good backtest into a bad one
A strategy that trades often can look excellent gross and be worthless net. Here is how to put commission, spread and slippage into a pandas backtest.
Read guide →Ready to build something?
Follow the Challenge to build your first paper-trading bot, or explore the Masterclass for the full path through Python, market data, and backtesting.