API

TradeIntel Chart Engine

A candlestick charting engine that may be embedded on your own website or application. You supply the price data. The engine renders the chart.

Terms of use

  • No charge. The engine may be used without an API key, account, usage cap, or fee, subject to the TradeIntel Charts license.
  • Lightweight. The script is approximately 40 KB over the wire. It has no external dependencies.
  • Compatible interface. Function names such as createChart and setData match Lightweight Charts. If you already use that library, you can usually switch by changing the script source.
  • Data remains local. Price data supplied to the engine is processed in the user’s browser. The engine does not transmit that data to TradeIntel.
  • Licence and branding. Use is free under the TI Charts licence. The TradeIntel mark must remain visible on the chart. Removal, concealment, or substitution of that mark is not permitted unless TradeIntel has agreed in writing.

Installation

<script src="https://tradeintel.ca/lib/ti-charts.js"></script>

Basic usage

<div id="chart" style="height:400px"></div>
<script>
  var chart = TICharts.createChart(document.getElementById('chart'));
  var candles = chart.addCandlestickSeries();
  candles.setData([
    { time: '2026-09-01', open: 100, high: 104, low: 99, close: 103 },
    { time: '2026-09-02', open: 103, high: 106, low: 102, close: 105 },
    // one object per bar, oldest first
  ]);
</script>

If you already use Lightweight Charts, retain your existing calls. Simply replace the script tag.

Live example

Included functions

Indicators, chart patterns, and trade setups are not included in this engine. Those features are provided only in TradeIntel Smart Charts.

API surface

TICharts.createChart(element, options) returns a chart object exposing addCandlestickSeries, addLineSeries, addHistogramSeries, removeSeries, timeScale(), priceScale(), applyOptions, subscribeCrosshairMove, resize, and remove.

A series object exposes setData, update, setMarkers, createPriceLine, priceToCoordinate, and coordinateToPrice.

The time scale exposes setVisibleLogicalRange, getVisibleLogicalRange, subscribeVisibleLogicalRangeChange, and coordinateToTime.

Versions and support

The URL above serves the current published version. Call TICharts.version() to confirm the loaded build. Questions: support@tradeintel.ca.