Python

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

Watercolor illustration of a laptop and small robot assistant before the Mumbai skyline for an NSE MCP Python AI agent tutorial

NSE MCP Python Tutorial: Build a Simple Stock Market AI Agent with Agno

Connect to NSE MCP from Python, list its tools for EOD history and live snapshots, and build a simple stock market...
Rajandran R
11 min read
Watercolor illustration of a sailboat fleet and nautilus shell for Nautilus Trader portfolio and multi-strategy backtesting

Introduction to Nautilus Trader Part 3: Portfolio and Multi-Strategy Backtesting with OpenAlgo Historify

Nautilus Trader portfolio backtesting with six NSE large caps, two strategies and one shared cash account, using OpenAlgo Historify data and...
Rajandran R
14 min read
Watercolor illustration of brass weights, compass and knotted ropes for Nautilus Trader position sizing and order types

Introduction to Nautilus Trader Part 2: Position Sizing, Order Types, Backtest Settings and Tearsheets

Nautilus Trader position sizing, order types, backtest settings and tearsheets compared on the same Keltner Channel strategy and SBIN data from...
Rajandran R
19 min read
Nautilus shell spiral made of connected modules showing event-driven trading architecture

Introduction to Nautilus Trader Part 1: Architecture and Event-Driven Backtesting with OpenAlgo

Nautilus Trader event-driven backtesting explained: its architecture, the order life cycle, and a Keltner Channel breakout backtest with OpenAlgo data.
Rajandran R
18 min read
Calculator with shield, coins and code brackets for a Python SPAN margin calculator tutorial

Python Tutorial on Span Margin Calculator using Marginism

Marginism is a Python library that removes that dependency completely. You give it the exchange's daily SPAN risk parameter file and...
Rajandran R
17 min read
Candlestick chart breaking out of an opening range box with target and stop lines: Python ORB visualizer

Building a Simple ORB Strategy Visualization with Stop Loss and Target Using OpenAlgo – Python Tutorial

Build a Python ORB strategy visualizer with OpenAlgo: fetch 1-minute data, compute opening range levels, add stop loss and target logic,...
Rajandran R
10 min read
Snake riding a gear-built rocket showing Rust speeding up Python code via PyO3

What Traders Should Know About PyO3: When Rust Makes Your Python Faster

PyO3 for traders: how Rust makes Python faster, a tested rolling z-score example built with maturin, real speedup numbers and when...
Rajandran R
6 min read
Compact desktop computer with a terminal window and coffee mug: setting up Python 3.14 on a Mac Mini

Setting Up a New Mac Mini with Python 3.14 using Homebrew

Mac Mini Python 3.14 setup with Homebrew, step by step: PATH fixes, the externally-managed-environment error, TA-Lib in a venv and the...
Rajandran R
6 min read
Circular event loop carrying event cards around a price chart for event driven backtesting

Event Driven Backtesting and Event Loops for Traders

Event driven backtesting explained: how an event loop processes market, signal, order and fill events, a Python example, and when to...
Rajandran R
9 min read
Candlestick chart with structure-break arrows and a teal fair value gap zone: Smart Money Concepts in Python

Smart Money Concepts (SMC) Structures and FVG: A Python Tutorial

A smart money concepts Python tutorial that detects Break of Structure, Change of Character and Fair Value Gaps, plotted on Reliance...
Rajandran R
17 min read
Snake coiled around server racks and trading monitors showing why quant firms use Python

If Python Is Slow, Why Do Hedge Funds, Quant Firms, and Prop Trading Desks Still Use It?

Why hedge funds use Python despite claims it is slow: the myths about C++, Rust and Go busted, a loop vs...
Rajandran R
6 min read
Laptop with code bars and a rising candlestick chart for learning Python for trading

[Free Python Course] – Learn Python Faster for Trading and Investing Using AI

A free Python course for traders: four live webinars teaching Python for trading and investing, using AI as a coding assistant...
Rajandran R
3 min read