Algo Trading with Python
Design, backtest, and deploy automated trading strategies on Indian markets using Python and broker APIs.
₹29,998 · 16 weeks · Advanced · Hybrid: Recorded modules with weekly live coding and strategy review sessions
Why this course
Algorithmic trading is no longer the exclusive domain of hedge funds and investment banks. With Python, open-source libraries, and broker APIs available in India today, any disciplined trader or programmer can build, test, and deploy automated strategies. This course teaches you to do exactly that, from your first Python line to a live strategy running on your own demat account.
About this course
This course takes you from the foundations of Python programming all the way through to deploying a live automated trading strategy using the Zerodha Kite Connect API or Upstox API. It covers Python for finance, data handling with Pandas and NumPy, technical indicator calculation, strategy logic, backtesting with Backtrader, performance analysis, and live execution. Every component is built from scratch so you understand exactly what your code is doing and why. The course also covers the business of algo trading: how to think about transaction costs, slippage, overfitting, and when a strategy is ready for live markets.
Who should attend
- Traders who have a strategy idea but do not know how to code it and test it properly
- IT professionals with coding skills who want to apply those skills to financial markets
- CMT or technical analysis practitioners who want to systematise their chart-based approaches
- Options traders who want to automate rule-based entry, exit, and adjustment logic
- Anyone curious about quantitative finance who wants a practical starting point
Curriculum
- Python Foundations for Finance Python setup, data types, control flow, functions, list comprehensions, working with CSV files, error handling basics
- Data Handling with Pandas DataFrames, loading OHLCV data, indexing, filtering, resampling, merging, handling missing data, date-time operations
- NumPy and Financial Calculations Arrays, vectorised operations, returns calculation, log returns, rolling calculations, performance comparison with pure Python
- Data Visualisation Matplotlib and mplfinance for candlestick charts, plotting indicators, drawdown charts, equity curves
- Fetching Market Data NSE Python library, Zerodha Kite historical data, Upstox API, yfinance, building a local data pipeline
- Technical Indicators from Scratch SMA, EMA, RSI, MACD, Bollinger Bands, ATR, Supertrend, crossover detection logic
- Strategy Design and Signal Generation Translating a chart strategy into code, entry and exit conditions, signal vectorisation, handling look-ahead bias
- Backtesting with Backtrader Backtrader architecture, feeding data, adding indicators, defining strategy class, running backtests, transaction costs
- Performance Analysis CAGR, Sharpe Ratio, Sortino Ratio, Max Drawdown, Win Rate, Average Win vs Average Loss, Monte Carlo simulation
- Options Algo Strategies Delta-neutral strategies in code, managing positions based on Greeks, automated strangle and Iron Condor logic
- Live Trading with Kite Connect API Authentication, live data streaming, placing and modifying orders, order status tracking, error handling in live environment
- Risk Management in Algo Systems Position sizing algorithms, capital allocation, drawdown controls, kill switches, logging and monitoring
- Avoiding Common Pitfalls Overfitting, curve fitting, survivorship bias, transaction cost underestimation, data quality issues, API outages
- Paper Trading Deployment Setting up a paper trading environment, running your strategy live on paper, reviewing results against backtest
- Building Your Algo Business Infrastructure options, co-location basics, scaling from retail to small proprietary desk, regulatory considerations
- Final Project and Review Each student presents and defends their backtested strategy in the live session; group review of results and methodology
What you will learn
- Write Python code confidently for data manipulation, analysis, and visualisation using Pandas, NumPy, and Matplotlib
- Fetch, clean, and process historical market data from NSE and broker APIs
- Code technical indicators from scratch including moving averages, RSI, MACD, Bollinger Bands, and ATR
- Design strategy logic with entry signals, exit signals, stop-loss, and position sizing rules
- Backtest a strategy using Backtrader and interpret performance metrics including CAGR, Sharpe Ratio, Max Drawdown, and Win Rate
- Connect to the Zerodha Kite Connect API to fetch live data and place orders programmatically
- Understand the key risks of live algo trading including slippage, latency, API errors, and position management
- Deploy one working paper-trading strategy before the end of the course
Questions about this program
Do I need to know Python before joining this course?
No. Module 1 starts from absolute basics. However, some prior exposure to any programming language will make the first few weeks easier. The course is designed to be accessible to someone with zero coding experience.
Which broker API does this course use?
The primary API used is Zerodha Kite Connect. Upstox API is also covered. You will need a Zerodha or Upstox demat account.
Can I run these strategies without being at the computer all day?
Yes, that is the point of automation. Once your strategy is deployed, it runs on its own based on the rules you have coded. However, monitoring for API issues and unusual market conditions is still required.
Is live algo trading regulated in India?
Yes. Retail algo trading via broker APIs is permitted in India. Strategies that use direct market access or co-location are subject to SEBI regulations, which we cover in Module 15.