Stock Trading Analysis with Python

The Stock trading analysis with Python is a course to teach students to write python algorithms to quantify the trading discipline and identify opportunities.

Stock trading using algorithm brings us several advantages. It allows traders to backtest their trading strategies before putting them to work, evaluating and customizing a wide range of stocks against multiple indicators is feasible which cannot be done using off-shelf software. And the biggest advantage is to help traders make objective decisions as they are governed by a set of well tested rules and not by human emotion from the markets.

Python is one of the best computer languages in developing Fintech products. We will use it throughout the course. After completing the course, students can write codes to download historical stock data from internet, calculate technical indicators, back test trading strategies, evaluate strategies performance, calculate return, plot stock data against different technical indicators ( such as MA, RSI and MACD ) and generate trading signal.

Those people who are interested in stock trading and want to evaluate the trading strategies using algorithm will find the course useful.

What you’ll learn


  • Python installation
  • Data manipulation
  • Strings operation
  • Using tuple, list and dictionary
  • Read / write text files
  • Using date/time related functions
  • Date and time format conversion
  • Slicing and merging data
  • Using if
  • Using for and while loop
  • Defining functions and using library

Technical Indicators Calculation

  • Calculating MA
  • Calculating RSI
  • Calculating Bollinger Bands
  • Calculating MACD

Stock Charts

  • Matplotlib drawing library
  • Plotting stock price with volume
  • Plotting stock price with MA + RSI
  • Plotting stock price with MACD
  • Plotting OHLC chart


  • Backtesting trading strategies
  • downloading stocks data
  • Building stock data database
  • Constructing backtesting workflow
  • Backtesting cross over trading strategy
  • Backtesting MA + RSI
  • Backtesting MACD

Batch Processing

  • Calculating return
  • Backtesting on multiple stocks
  • Backtesting results comparison
  • Fine tunning trading strategy parameters
  • Evaluating strategies performance

PYS1051 - 廣東話 29 May enrol
  Beginning Data Science with Python
  Python for Data Analysis
  Python Programming