
Learn algorithmic trading in the Indian stock market with Python and free APIs, covering arbitrage and indicator-based trading. Build, backtest, and deploy your systems with cloud hosting and AI tools.
Open a Demat account to hold shares electronically and learn to buy or sell via delivery or intraday trades with MIS leverage, stop loss, and chart-based support and resistance.
The lecture contrasts intraday and swing trading, explains margin and leverage, including MIS, and covers using holdings as collateral and short selling to profit from price declines.
Learn derivatives trading with index futures and options on the Nifty 50, trading derivatives of an index rather than the index itself, and three algorithmic trading strategies using equity trading.
Learn how stop loss orders limit losses by automatically exiting a trade at a predefined price. See examples: buy at 100 with a stop at 90 and a target at 110.
Explore how support and resistance form price bands that limit market moves, where levels act as buy and sell magnets, and how zones shift from support to resistance and back.
This course section teaches candlestick patterns, trend lines, reversal and continuation patterns, and momentum indicators, with examples of hammer, bullish engulfing, shooting star, and bearish engulfing patterns.
Discover how trend lines map price direction by connecting price pivot points, revealing support, resistance, and chart patterns, with breakouts signaling potential trend reversals.
Study reversal and continuation chart patterns, including head and shoulders and inverted head and shoulders, double tops and bottoms, flags, and pennants, with focus on trend lines and breakouts.
Gauge price and volume momentum to identify trend direction, then use sma/ema, relative strength index, and stochastic oscillator to spot entry points and overbought or oversold conditions.
Identify chart patterns and candlestick signals to forecast price moves across time frames, from flag and pennant patterns to head-and-shoulders, double tops and bottoms, and bullish engulfing and hammer candles.
Build a trading system that prioritizes long-term safety, money management, and position sizing through backtesting. See how a system reduces emotional impact and distinguishes it from a strategy.
Balance win rate and risk-to-reward ratio to drive profitability in algorithmic trading in the Indian stock market, using examples like 60% win rate and ratios 1:2 or 1:3.5.
Drawdowns measure the decline from the highest to the lowest point as a percentage, illustrating risk and recovery needs; a 10% drawdown from 1000 requires 11.11% gain to break even.
Explore trading psychology to manage fear and emotions, think in probabilities, and build self-discipline for consistency. Learn how automatic systems reduce bias, enforce rules, and prevent common trading mistakes.
Master money management and position sizing in the Indian stock market by applying risk management, diversification, and the 2% rule to protect capital and size trades with stop-loss calculations.
Evaluate trading strategies by backtesting against historical data to assess risk and profitability, with longer periods like five years increasing reliability for future automated trading.
Install python via anaconda and verify with conda list, then set up the ide and start exploring python basics: data types, if else, data structures, loops, functions, modules, and exceptions.
Install Visual Studio Code as the IDE, download and install, then use the file explorer to create a Python file like test.py, write code, and run it.
Explore Python data types and practical coding skills, from integers and floats to strings and booleans, including input, type conversion, f-strings, and basic arithmetic and comparisons.
Learn to write if-else statements in python, using if, elif, and else, with indentation and input, to check conditions such as even or odd numbers and fizzbuzz.
Explore Python data structures—lists, sets, tuples, and dictionaries—covering indexing, slicing, and len. Learn list methods like append and insert; use dictionaries for key-value access, and note tuples are immutable.
Explore Python loops by building while and for loops, iterating through lists and strings, and using break, continue, and range to control flow.
Explore Python functions: define with def, parameters, return values, and call with positional or keyword arguments; master default parameters, scope, and global variable usage.
Explore modules and imports in Python, create and import modules and packages, distinguish standard and external libraries, and use NumPy for numerical arrays via pip installations.
Learn to identify syntax, runtime, and logical errors in Python, and master error handling with try/except, including value errors, name errors, division by zero, and file I/O.
Practice six python programs: check unique numbers with sets, display time every two seconds, print patterns, locate words with find, test primality, and save numbers to a file.
Master Pandas for data manipulation and analysis of trading data, including creating data frames, importing and exporting CSV files, filtering and summarizing, and selecting or dropping columns.
Learn to access APIs using Python and the requests library, perform simple get requests to jsonplaceholder and newsapi endpoints, handle status codes, and parse JSON data for trading insights.
Learn how to set up Pushbullet in Python to send and receive notifications across devices, including creating an API key, installing pushbullet.py, and loading keys with dotenv.
Install and import the Python schedule library, define a task, and schedule it to run every two seconds using run_pending in a loop with time.sleep, for algo trading tasks.
Explore object oriented programming concepts through Python examples, covering class, object, attributes, methods, encapsulation, inheritance, and polymorphism with practical dog and animal illustrations.
Explore how to define and use Python enums to group related constants, access members by value or name, iterate them, and extend with methods for modeling algorithm stages in trading.
Learn how to use documentation and prompt engineering to speed up algo trading projects, with Python libraries like pandas and requests, and practical prompting tips to improve model responses.
Master seven best practices for clean, scalable code: readability, maintainability, and scalability; solve one bug at a time; use virtual environments, a requirements.txt, DRY, and .env security.
Configure Kotak Securities Trade API credentials, generate a non-expiring access token, install KS API client, and set up a .env file for login and two-factor authentication.
Learn a bullish trend following strategy using sma9 and sma21 on a one-minute Reliance chart, entering when sma9 crosses above sma21 and exiting on the reverse cross.
Set up the first trading bot project by creating main.py, defining stock constants, implementing a state manager with enum states, and integrating pushbullet notifications with minute-based scheduling.
Implement login, logout, getToken, and updateState in utils.py to support SMA 9 and SMA 21 based market operations.
Compute SMA9 and SMA21 with getSMA in analysis.py by reading data.csv, converting time, setting a time index, filtering by timeframe, and returning the two SMAs.
Implement a position manager that places orders, exits all open today’s positions, and computes realized and open pnl, using the trading api client, instrument token, and transaction types.
Create a Python logging system with log.py and formatted logs. Capture traceback, convert server time, and link logs to trading actions like placing orders and exiting positions.
Deploys a live trading algorithm and fixes errors through end-to-end debugging, logging, and safe exit of positions, detailing login, data handling, SMA 9 and SMA 21, and PNL checks.
An introduction to statistical arbitrage, showing how to simultaneously long and short correlated securities across exchanges to exploit mean reversion, with entry and exit rules and thresholds for high-frequency trading.
Develop a complete arbitrage trading codebase for the Indian stock market, implementing a two-token NSE and BSE strategy with a minimum difference and dual orders every 15 seconds.
Demonstrates live deployment of an arbitrage algorithm on the Indian stock market, placing NSE and BSE orders based on live price differences and a configurable threshold.
Explore a real-time news based trading strategy using sentiment analysis with Vader and News API to generate buy or sell signals from compound scores.
Develop a complete codebase for a news-based trading project, reusing an arbitrage blueprint to drive live market decisions with sentiment analysis and a 0.5 threshold.
This live demo explains planning a news-based sentiment strategy for algo trading in the Indian stock market, generating a buy signal, opening a buy position, and exiting by day end.
Host your trading bot on Python Anywhere using git and GitHub for version control, push a repo, install requirements in a virtual environment, and schedule automated tasks.
Welcome to "Master Algorithmic Trading in the Indian Stock Market", the ultimate course for mastering automated trading strategies in India, and the First Course that uses Free APIs!
New Updates: July 2024 - Recent useful material added!
Did you know that in the Indian Stock Market, as per a SEBI study in 2023,
90% of individual traders in equity Futures and Options segment incurred net losses!
On an average, loss makers registered net trading loss of around Rs. 50000.
On top of this, loss makers spent an additional 28% of net trading losses as transaction costs.
Those making net profits, spent 15% to 50% of their profit as transaction cost.
This happens because most traders trade emotionally and without a structured strategy, essentially gambling in the market. However, the market is supreme, and no individual can single-handedly make the market bend to their will.
This course teaches you to trade like a professional by using algorithmic systems that follow predefined rules without emotion. These systems can be rigorously backtested with historical market data, ensuring reliability and consistency.
Master the Basics of Trading: From setting up a Demat account to executing trades with leverage, dive into the ways of trading!
Harness Technical Analysis: Identify patterns and trends with candlesticks, trend lines, and momentum indicators to make informed trading decisions.
Build Your Trading System: Develop robust trading systems with high win rates and optimal risk-to-reward ratios. Manage drawdowns, master trading psychology, and refine your strategies through rigorous backtesting.
Python for Algotrading: Master Python essentials, from data handling with Pandas to API integration with PythonAnywhere. Utilize advanced tools like Pushbullet for real-time updates, and Logging for debugging.
Advanced Strategies and Tools: Explore indicator-based, statistical arbitrage, and news-based strategies. Set up the free Kotak Securities API and leverage PythonAnywhere for hosting your trading systems.
This course isn't just about automation; it's about empowering you to thrive in the dynamic world of algorithmic trading using Python and free APIs. Whether you're a beginner or an experienced trader looking to automate and optimize your strategies, this course equips you with the tools and knowledge to succeed.
Let's automate your success in the stock market together. See you in the course!