Python

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

Code editor panel streaming data into a clean candlestick chart window

TradingView Lightweight Historical Charts using OpenAlgo – Python Tutorial

Build TradingView-style Lightweight Charts with OpenAlgo in Python through seven examples, from candlesticks to drawing tools and multi-symbol comparison.
Rajandran R
13 min read
AI lens scanning financial news pages into sentiment arrows and a chart

FinNews AI: Your Open-Source Financial Intelligence Companion for Smarter Trading Decisions

These days, trading decisions are often shaped by how quickly and accurately you can read the data. The line between a...
Rajandran R
3 min read
Call and put option cards merging into one synthetic futures line

How to Generate Synthetic Future Charts in Python Using Weekly Options

Build a synthetic future chart in Python with OpenAlgo from ATM weekly options. Formula, worked example, code walkthrough and NIFTY expiry...
Rajandran R
5 min read
One signal line fanning out into a grid of many parallel equity curves

Mastering VectorBT – Broadcasting -How to Run Multiple Strategies at Once – Part 5 -Python Tutorial

If you're using VectorBT to backtest trading strategies, you've probably seen the term "broadcasting" pop up. It's not just a fancy...
Rajandran R
2 min read
Open black box revealing SHAP-style feature bars driving a forecast line

Demystifying SHAP for Traders: How to Trust Your Machine Learning Forecast

In this post I walk through a live CatBoost model that forecasts the NIFTY-50 and then crack it open with SHAP...
Rajandran R
6 min read
Control panel of dials and an options payoff curve for computing greeks

Computing Option Greeks Using OpenAlgo and Mibian: A Python Guide for Traders

Calculate option Greeks in Python with OpenAlgo and Mibian: live Delta, Gamma, Theta, Vega and implied volatility for any NIFTY or...
Rajandran R
5 min read
Large many-lane chip racing ahead of a small chip with few lanes

GPU vs CPU Performance: A Curious Experiment in Speed and Parallelism for Technical Analysis

Lately, I’ve been curious, how much faster is a GPU compared to CPU for technical analysis indicators? Do simple operations like...
Rajandran R
5 min read
Robot emerging from a laptop analysing a candlestick chart, offline plug icon

Build Your Own Trading Agent Locally Using Ollama and Google Gemma3: Part 1

Set up Ollama Gemma3 on Windows: pull gemma3:4b or 12b, call it from Python with JSON output and Open WebUI, and...
Rajandran R
5 min read
Road fork with the highlighted path leading to flowing code blocks

Why We Built OpenAlgo in Python: Not Go, Rust, or as an EXE

Why did we build OpenAlgo in Python instead of Go, Rust, or as a desktop EXE? This blog breaks down the...
Rajandran R
2 min read
Stack of glowing gold bars beside a sharply spiking red fear line

Gold Performance After VIX Spikes Above 30: A Comprehensive Analysis

When market fear intensifies and the VIX (the "fear index") spikes above 30, investors often rush to gold as a perceived...
Rajandran R
11 min read

Things a Python Automated Trader Needs to Know About Broker APIs (in India)

Broker APIs in India explained for Python traders: login tokens, orders, market data, WebSockets, SEBI static IP rules from April 2026...
Rajandran R
7 min read

Mastering yfinance: The Ultimate Guide to Analyzing Stocks Market Data in Python

A yfinance Python guide for 2026: fetch price history, intraday data, financials, news and option chains from Yahoo Finance for US...
Rajandran R
15 min read