Workshop: Guided Example - Backtesting with Python
Workshop/ Training/ Webinar
-
Date
28 Oct 2022
-
Organiser
ITS
-
Time
14:30 - 17:00
-
Venue
Online (MS Teams)
Enquiry
IT HelpCentre (Hotline) 2766 5900 / (WhatsApp/ WeChat) 6577 9669
Summary
Guided Example: Backtesting with Python
Date: 28 Oct
Time: 14:30 - 17:00
Target Audience: All Students
Medium of Instruction: English
Pre-requisite: Basic knowledge in Python
What you will learn
- Using Python with other open-source python packages, you could
- Simply retrieve historical data of stocks from open data sources
- Learn and use a open-source Python trading framework called backtrader to build a trading strategy
- Run backtesting with pre-defined strategy with historical data to access performance
Course outline
- Retrieve historical data of stocks
- Introduction and update for backtrader
- Basic structure: strategy and cerebro engine
- Data feeding
- Develop a trading strategy
- Execute and notify orders according to the strategy
- Profit and Loss with logging and visualization on backtesting
- Course work: Putting all together for a backtesting with new strategy