Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

OpenAlgo Charts: Open Source Charting Platform and Trading Terminal You Can Build On

6 min read

Multi-panel trading terminal with open padlock and building blocks for open source charting

Most traders never get to choose their charts. You take whatever your broker ships, and if the study you want is missing, or the layout is wrong, or you want the same chart running inside your own website, there is very little you can do about it. OpenAlgo Charts is built to change that. It is a free and open source charting engine and trading terminal, released under the Apache-2.0 licence, and any trader, broker or fintech portal can take it and build on it.

It is written from scratch on the HTML5 canvas, with no third party charting library underneath it, and it is the engine behind the charts inside OpenAlgo itself. Everything shown below is the live OpenAlgo terminal running on real broker data.

Key Takeaways

  • Free and open source under Apache-2.0, so commercial and white label use is allowed.
  • 13 chart types, 102 built-in indicators, 85 drawing tools, market replay and layouts of up to eight charts.
  • Combined option premium charts (straddles, spreads, ratios) and an option chain with live Greeks.
  • Order placement from the chart, wired to more than 35 Indian brokers through OpenAlgo, with a sandbox mode.
  • Install with npm install openalgo-charts or load it from a CDN in a single HTML file.

OpenAlgo Charts at a Glance

ItemDetails
LicenceApache-2.0 (commercial use allowed)
Packageopenalgo-charts on npm (version 2.6.9 at the time of this update)
SizeAbout 216 KB compressed, zero runtime dependencies
Chart types13
Indicators102 built in, plus custom JavaScript indicators
Drawing tools85, anchored to time and price
LayoutsUp to 8 synced charts
TradingMarket, limit and stop orders from the chart; sandbox (Analyzer) mode

What OpenAlgo Charts gives you

It is a charting engine and a trading terminal in one package: 13 chart types, 102 built-in technical indicators plus any you write yourself, 85 drawing tools, market replay, multi chart layouts, combined option premium charts, and order placement from the chart with a sandbox mode so nothing goes live until you arm it.

OpenAlgo Desktop: algo trading on your own computer

WINDOWS, MAC AND LINUX

OpenAlgo Desktop: algo trading on your own computer

Install, sign in, connect your broker and trade. No server to set up and no Python to install.

  • Same API and screens as OpenAlgo web
  • Strategy module, charting and scalping terminals
  • Keys stay encrypted on your machine

102 built-in indicators, and the ones you write yourself

The indicator library ships with 102 studies. The everyday ones are all there: SMA, EMA, WMA, VWAP, Bollinger Bands, RSI, MACD, Stochastic, ADX and DMI, ATR. So are the trend followers traders actually use on Indian markets: Supertrend, HalfTrend, Ichimoku, Keltner Channels, Donchian Channels, Chandelier Exit, and CPR with floor pivots. Beyond those sits a long tail of less common studies, from Connors RSI and Fisher Transform to WaveTrend, Vortex, Klinger and Williams Fractals.

Some of them shade zones on the chart, some print named buy and sell markers, and a couple recolour the candles themselves. If the indicator you want is not in the list, you can write it in plain JavaScript and register it. It then behaves exactly like a built-in, including the generated settings dialog for colour, thickness, line style and parameters.

85 drawing tools that stay where you put them

There are 85 drawing tools: trend lines, channels and pitchforks, the full Fibonacci set including retracements, extensions, fans, time zones, circles and arcs, the Gann fan, box and square, harmonic patterns, Elliott waves, shapes, forecasts, measurements, text, tables and freehand brushes.

Every drawing is anchored to a time and a price rather than to pixels on the screen. That sounds like a technical detail until you zoom, switch timeframe or scroll past the last candle and find your support line still sitting exactly where you drew it. Magnet snapping to open, high, low and close, undo and redo, copy and paste between charts, and saved layouts are all part of it.

Combined option premium charts, straddles and ratios

This is the feature option traders ask for most often. Type two legs with an operator in the symbol box and you get a single chart of the combined premium. An at the money straddle is simply the call plus the put. A ratio chart is one symbol divided by another. A spread is a subtraction. The chart updates on every tick, so you can watch a straddle bleed through the session instead of adding up two windows in your head.

Indicators work on the computed series exactly as they do on a normal chart, so a Supertrend or a moving average on a straddle premium is one click away. A computed chart cannot be traded, and the terminal says so plainly rather than letting you discover it at the wrong moment.

Option chain with live Greeks next to the chart

The option chain sits beside the chart and switches between last traded price, open interest, volume and the Greeks: implied volatility, delta, gamma, theta and vega. Spot, the at the money strike and the put call ratio sit at the top, and any strike can be sent to the chart or traded straight from the chain.

Market replay and multi chart layouts

Market replay steps through a past session bar by bar at whatever speed you choose, rebuilding every indicator, level and marker as it stood at that bar. It is the honest way to check whether a study repaints, and a quiet way to practise a setup without risking anything.

Layouts go up to eight charts, each with its own symbol, timeframe and indicators. Hovering one chart marks the same moment on the others, which matters when you are watching an index, its future and two stocks at the same time.

Trading directly from the chart

Right click anywhere on the price to place a market, limit or stop order. Drag the order line to modify it, drag the bracket lines to move the target and the stop, and watch live profit and loss on the position line. There are one click buy and sell buttons on the chart, a depth of market ladder, and an order state machine behind all of it.

Inside OpenAlgo this is wired to the broker layer, which currently covers more than 35 Indian brokers, with US and crypto brokers in progress. Analyzer mode runs the entire workflow against a sandbox first, so you can rehearse the clicks without anything reaching the exchange.

For brokers, fintech portals and platform builders

OpenAlgo Charts is a library, not an embed. There is no iframe, no licence key and nothing calling home. You hand it your own data feed and it charts whatever your backend already serves, which means a broker or a portal can assemble its own terminal without asking anyone for permission or paying per seat.

  • The chrome is optional. Use the engine on its own and keep your own interface, or call one function and get the whole terminal.
  • Branding can be switched off for a white label deployment.
  • Saved layouts, indicators and drawings come back as plain JSON, so templates need no extra plumbing.
  • The whole library is about 216 KB compressed with zero runtime dependencies, and you load only the parts you use.
  • Apache-2.0, so commercial use is allowed.

If you are a broker or platform builder comparing licences, note the difference within the OpenAlgo family: the charting library is Apache-2.0, while the OpenAlgo platform itself is AGPL-3.0. I have explained why OpenAlgo is licensed under AGPL-3.0 and what that means for brokers.

How to get started

Install it from npm:

npm install openalgo-charts

Or skip the build step entirely and load it from a CDN in a single HTML file:

<div id="chart" style="width:100vw;height:100vh"></div>
<script type="module">
  import { createChart } from 'https://unpkg.com/openalgo-charts/dist/openalgo-charts.mjs';
  const chart = createChart(document.getElementById('chart'), { timezone: 'Asia/Kolkata' });
  chart.addSeries('candlestick').setData(bars);
</script>

If you want the complete terminal rather than a bare chart, one call gives you the top bar, symbol search, interval pills, the indicator menu, the drawing rail, the status line, the right click menu and layout persistence:

import { createWidget } from 'openalgo-charts/widget';
import 'openalgo-charts/indicators';

const widget = createWidget('#terminal', {
  feed: myFeed,
  symbol: 'RELIANCE', exchange: 'NSE', interval: '5m',
  theme: 'dark',
  persist: true,
  onOrder: (order) => broker.place(order),
});

If you only need a lightweight historical chart inside a Python app, my earlier tutorial on TradingView Lightweight Charts with OpenAlgo is a simpler starting point.

What it does not do yet

Worth stating plainly, because a feature list without limits is marketing rather than documentation.

  • Footprint and order flow need trade by trade data classified into buys and sells. It is a live session view unless you record ticks yourself.
  • Volume profile and market profile are tuned for dark themes and need explicit colours on a light one.
  • A second comparison symbol on the same pane shares the first one’s scale, so give further instruments their own pane.

Part of the OpenAlgo Open Source Toolkit

OpenAlgo Charts is one piece of a set of free tools we maintain for Indian traders. All of them live on GitHub, so you can read the code, open issues and send pull requests.

OpenAlgo

Self-hosted algo trading platform with one unified API for 35+ Indian brokers, TradingView, Amibroker, Python and Excel integrations. AGPL-3.0. Source on GitHub.

OpenAlgo Charts

Dependency-free canvas charting engine and trading terminal with indicators, drawings, replay and option charts. Apache-2.0. Documentation.

OpenAlgo Python Library

Python client for the OpenAlgo API: orders, quotes, historical data and websockets. Install with pip install openalgo from PyPI. MIT. Source on GitHub.

OpenAlgo itself crossed 100,000 downloads after two years of development, and you can read the story behind it in the original OpenAlgo V1.0 announcement.

Links and resources

Frequently Asked Questions

Is OpenAlgo Charts free for commercial use?

Yes. It is released under the Apache-2.0 licence, which allows commercial use, modification and white label deployment, with no licence key or per-seat fee.

Do I need OpenAlgo to use OpenAlgo Charts?

No. The library charts any data you feed it from your own backend. OpenAlgo is needed only if you want the built-in broker connectivity for trading from the chart.

How do I install OpenAlgo Charts?

Run npm install openalgo-charts, or import it from a CDN with a script module tag as shown in the getting started section. The createWidget call gives you the full terminal.

Does OpenAlgo Charts support market profile and footprint charts?

Yes, with limits. Volume profile and market profile are available, and footprint needs trade-by-trade data, so it works as a live session view unless you record ticks.

If you build something on top of OpenAlgo Charts, or you try it against your own data feed and something does not fit, leave a comment. That is the feedback that shapes what gets built next.

Python Elite membership

MEMBERSHIP

Python Elite membership

15 Python, AI and algo trading programs in one plan, including QuantFlow and AI Bootcamp live mentorship.

  • Python from fundamentals to trading apps
  • Backtesting, broker APIs and OpenAlgo
  • Live QuantFlow and AI Bootcamp sessions
View Python Elite →by Marketcalls

Learn by watching: free videos every week

Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.

Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More