Python

Python for traders: tutorials on data analysis, backtesting, broker APIs, OpenAlgo and building trading tools step by step.

Mastering VectorBT - Superfast Supertrend Grid Optimization - Part 3 – Python Tutorial

Mastering VectorBT – Superfast Supertrend Grid Optimization – Part 3: Python Tutorial

VectorBT provides a robust framework for optimizing trading strategies more efficiently, enabling the selection of the best parameters and fine-tuning of...
Rajandran R
5 min read
Kernel Density Estimation of Nifty - Data Visualization using Seaborn Python Library

Kernel Density Estimation of Nifty – Data Visualization using Seaborn Python Library

Kernel Density Estimation is an elegant way to visualize the price distribution. KDE plots are widely used to visualize and explore...
Rajandran R
1 min read

Using Plotly and Pandas TA to Plot Technical Indicators – Python Tutorial

Plot technical indicators with Plotly and pandas_ta in Python: get Yahoo Finance data, compute RSI, ATR and Supertrend, with tested 2026...
Rajandran R
6 min read

Create a Simple RSI Filter Crossing Above 80 – Python

Python code to find RSI crossing above 80 on Nifty, measure the next 5, 10 and 20 day returns, plus an...
Rajandran R
6 min read
Mastering VectorBT - Portfolio Backtesting and Rebalancing – Part 2 – Python Tutorial

Mastering VectorBT – Portfolio Backtesting and Rebalancing: Part 2, Python Tutorial

Portfolio backtesting is a critical aspect of quantitative finance and trading strategy development. VectorBT is a Python library that stands out...
Rajandran R
5 min read

Mastering VectorBT Backtesting and Optimization – Part 1 – Python Tutorial

A VectorBT backtesting tutorial for Python: backtest an EMA crossover on HDFC Bank, read the metrics, plot equity and drawdown, then...
Rajandran R
8 min read

How to Fetch Realtime Stock Market Quotes using SmartAPI Python Library – AngelOne Trading Account

Stream realtime quotes with the SmartAPI Python library for AngelOne: install it, enable TOTP, generate the API key and fetch live...
Rajandran R
8 min read

Mastering Python F-String Formatting: A Trader’s Guide

Learn Python f-string formatting for trading data: prices, volumes, dates, percentages and Indian ₹ lakhs format, with 18 tested snippets.
Rajandran R
7 min read

Rolling Sharpe and Sortino Ratios – Python Code

Python code to calculate and plot the rolling Sharpe and Sortino ratio for Nifty, updated for current yfinance with annualised ratios.
Rajandran R
7 min read

What is Online Machine Learning?

Learn what online machine learning is: models that learn from streaming data one point at a time, with tested scikit-learn and...
Rajandran R
4 min read
Machine Learning Using Amibroker

How to Perform Machine Learning Using Amibroker and Python

Amibroker is a powerful technical analysis and trading system development platform, used extensively by traders and analysts for developing and deploying...
Rajandran R
4 min read

Top Quant Python Libraries for Quantitative Finance

Top Python libraries for quantitative finance: pandas, NumPy, QuantLib, VectorBT, TA-Lib and more, with 2026 status and which ones to learn...
Rajandran R
10 min read