Algorithmic Trading & Backtesting
Turn an idea into a tested strategy without fooling yourself: clean data, signals, realistic costs, walk-forward tests and the statistics that separate skill from luck.
Start the free previewLabs run in your browser. No installs.
What you will be able to do
- Build a vectorised backtest with costs and slippage
- Avoid look-ahead, survivorship and data-snooping bias
- Evaluate with walk-forward tests and the deflated Sharpe ratio
- Explain order types, market microstructure and execution algorithms
Tools
- Python
- pandas
- NumPy
- vectorbt
Syllabus — 5 modules
Market data and microstructure
Prices come from order books. Bid–ask spreads, liquidity and corporate actions must be in your data before any signal is meaningful.
Order books and order types · Adjusted prices and corporate actions · Liquidity on African exchanges · Bars: time, volume and dollar
Signals and strategies
Momentum, mean reversion, carry and value are the classic families. Define each signal precisely and lag it so it only uses past data.
Momentum and trend following · Mean reversion · Carry and value · Lagging signals to avoid look-ahead
Backtesting with realistic costs
A backtest is a simulation of history. Fees, spreads, slippage and position limits turn many paper profits into losses.
Vectorised vs event-driven backtests · Transaction costs and slippage · Position sizing · Turnover and capacity
Overfitting and robust evaluation
Try enough strategies and one will look brilliant by chance. Walk-forward tests, out-of-sample data and the deflated Sharpe ratio keep you honest.
Data snooping and multiple testing · Walk-forward analysis · Deflated Sharpe ratio · Probability of backtest overfitting
Execution, risk and production
A live strategy needs execution algorithms, kill switches, monitoring and compliance with market rules.
TWAP and VWAP execution · Pre-trade risk checks and kill switches · Monitoring live vs backtest · Market-abuse rules (SEC Nigeria and others)
How you are assessed
Every module ends with a check question. The final exam has 15 theory questions and 3 hands-on tasks solved in the tool this course teaches; pass at 70% for a certificate anyone can verify online.
Where it sits in the Financial Engineering track
- Quantitative Finance Foundations Beginner
- Fixed Income & Yield Curves Intermediate
- Derivatives & Options Pricing Intermediate
- Stochastic Calculus & Monte Carlo Advanced
- Market Risk: VaR, Expected Shortfall & Stress Testing Advanced
- Portfolio Construction & Asset Pricing Advanced
- Credit Risk Modelling Advanced
- FX, Rates & Hedging in African Markets Advanced
- Algorithmic Trading & Backtesting (this course) Advanced
- Machine Learning for Finance Advanced
Part of these career paths
Questions and answers
- How long does the Algorithmic Trading & Backtesting course take?
- About 20 hours across 5 modules, at your own pace. At five hours a week most learners finish in 4 weeks.
- Is Algorithmic Trading & Backtesting free?
- The first module is a free preview. The full course is part of Pro, or a friend's invite can unlock its whole track for up to three months using referral points.
- Do I get a certificate for Algorithmic Trading & Backtesting?
- Yes. Pass the final exam (15 theory questions and 3 hands-on tasks in 40 minutes, pass mark 70%) and you get a certificate with an ID that anyone can verify online.
- What should I know before starting Algorithmic Trading & Backtesting?
- It follows FX, Rates & Hedging in African Markets in the Financial Engineering track. If Financial Engineering is new to you, start with Quantitative Finance Foundations.
- What will I be able to do after Algorithmic Trading & Backtesting?
- Build a vectorised backtest with costs and slippage; Avoid look-ahead, survivorship and data-snooping bias; Evaluate with walk-forward tests and the deflated Sharpe ratio.