Educational use only. This website does not give investment advice.

Python Basics for Algo

Algo & Quantitative Trading

Python Basics for Algo

Python is one of the most widely used languages for analysing market data and building trading rules. This material introduces the Python basics needed for algorithmic trading, including variables, lists, loops, functions and working with libraries such as pandas and NumPy. Examples use price data so each concept is shown in a market context rather than in the abstract.

Levels
4
Starting from
260 credits
Category
Algo & Quantitative Trading
Python Basics for Algo
4 levels
Each level is unlocked separately

Choose a level

Choose a level to see what it includes

Level 1

Beginner

  1. Covered in this level

    Covered topics include installing Python and a notebook environment, variables and data types, lists and dictionaries, if statements, loops, and simple functions. Each idea is shown with small market examples, such as calculating daily price changes or averaging a list of closing prices.

  2. Suited to

    This level is written for learners who have never programmed and want to use Python for market analysis. It focuses on setting up a working environment and understanding the core building blocks of the language, using simple examples based on price data.

  3. What you will be able to apply

    This level should help you write and run short Python scripts, store and loop through price data, and build simple functions, giving you a practical foundation for the data handling needed in later algo trading materials.

About this material

The material starts with setting up a Python environment and writing simple scripts, then moves on to loading price data from files, cleaning it and calculating returns, moving averages and other basic figures. It explains how to organise code into reusable functions so later strategies are easier to build and test. It also explains common error messages beginners meet and how to read them calmly.

Later sections introduce plotting price charts, handling dates and times, and turning a simple rule into code that produces buy and sell signals. No previous programming experience is assumed. It suits traders and investors who want to start working with data themselves and learners preparing for backtesting and automation topics.