Python

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

Best Python Coding Practice to Handle ApiKeys Securely

In the field of algorithmic trading and software development, especially in scenarios involving web services and APIs, ensuring robust security is...
Rajandran R
1 min read

How to Install VectorBT in a Virtual Environment and Access using VS Code – Python Tutorial

How to install VectorBT in a Python virtual environment and use it in VS Code, with 2026 Python version support, common...
Rajandran R
6 min read

Nifty Crossed 22000. How many days it took to Cross all the Round Numbers: Python Tutorial

Nifty today crossed 22000+ levels with a fresh all-time high. Have you ever calculated how many trading days it took for...
Rajandran R
1 min read

Visualizing the Market Strength Using a Gauge Chart: Python Tutorial

Build an RSI gauge chart in Python with Plotly: fetch Nifty data with yfinance, compute RSI(14) and show oversold to overbought...
Rajandran R
5 min read

Visualizing Nifty 50 Market Capitalization using Plotly Treemap – Python Tutorial

Build a Nifty 50 market cap treemap in Python with Plotly: full code, step-by-step explanation, a % change colour version and...
Rajandran R
5 min read

Crash Course – Python for Traders

Welcome to "Python for Traders," a comprehensive journey into using Python to enhance your trading strategies. This course is designed to...
Rajandran R
2 min read

Top 10 Python Libraries with Historical Data APIs for Effective Algo Trading

Discover the top 10 broker Python libraries with historical data API access for algo trading, the essential API features and the...
Rajandran R
6 min read

Simple Live Nifty Options Open Interest Monitoring Tool – Python Tutorial

Plotting live open interest charts is a powerful tool to visualize this data in real-time, helping to make informed decisions. This...
Rajandran R
2 min read

Designing Simple EMA Crossover Intraday Scanner using Python

This Python script is designed to track and analyze Exponential Moving Average (EMA) crossovers for a set of specified stock tickers...
Rajandran R
2 min read

Mastering VectorBT: Position Sizing – Code Snippets, Part 4, Python Tutorial

VectorBT position sizing explained with Python code: amount, value, percent and targetpercent size types, a sizing calculator and a corrected script.
Rajandran R
6 min read

How to Fetch Historical Stock Market Data using SmartAPI Python Library: AngelOne Trading Account

Fetch historical stock market data with the SmartAPI Python library on an AngelOne account. Covers API key setup, pyotp, pytz and...
Rajandran R
6 min read
Halftrend Indicator - Python Code

Halftrend Indicator – Python Code

Halftrend is a Trend trend-following indicator that could manage the sideways market better. In this tutorial, we will be building Halftrend...
Rajandran R
2 min read