Python

Python Tutorial for Traders

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

NSE MCP Python tutorial: connect to the two official NSE MCP endpoints, explore all 26 market data tools and build a...
Rajandran R
9 min read
Nautilus Trader portfolio backtest: twelve strategy instances (Keltner and mean reversion on six NSE stocks) sharing a cash book, portfolio and equity recorder actor, one cash account and Historify data

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

Part 3: a six-stock portfolio and two strategies in one Nautilus Trader account, with OpenAlgo Historify data, and what diversification really...
Rajandran R
13 min read
Map of Nautilus Trader order types: buy stop, stop-limit, sell limit and market-if-touched above the market, buy limit, if-touched, sell stop and trailing stop below it, plus bracket orders and time in force

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

Part 2 of our Nautilus Trader series: position sizing, market, limit and stop orders, the backtest settings that move results, and...
Rajandran R
15 min read
Nautilus Trader architecture diagram: strategies, actors and execution algorithms on top of a message bus with data, risk and execution engines, portfolio, cache and clock, over a backtest simulated exchange or live venue adapters

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

New to Nautilus Trader? Learn its event-driven architecture, how orders fill in a backtest, and how to backtest an NSE strategy...
Rajandran R
16 min read

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

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
11 min read

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

What is a thin PyO3 wrapper? A thin PyO3 wrapper is a small layer of Python-friendly code sitting on top of...
Rajandran R
3 min read

Setting Up a New Mac Mini with Python 3.14 using Homebrew

Learn how to set up a new Mac Mini for Python development using Homebrew. This step-by-step guide covers installing Python 3.14,...
Rajandran R
3 min read

Event Driven Backtesting and Event Loops for Traders

Event driven backtesting simulates trading the way markets actually work. Instead of calculating everything at once, it processes events step by...
Rajandran R
2 min read

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

Smart Money Concepts (SMC) is one of the most widely discussed price action frameworks in modern trading. Unlike traditional technical analysis...
Rajandran R
14 min read

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

Python is often criticized for being slow, yet it remains one of the most widely used languages inside hedge funds, quantitative...
Rajandran R
3 min read

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

This four-part live webinar series teaches Python in a practical, market-focused way. Instead of treating coding as a separate subject, Python is introduced...
Rajandran R
1 min read