Skip to content
Thomas Han edited this page Oct 30, 2015 · 2 revisions

WikiAPI ReferencePlotsData

Candlestick

The simplest way to construct a candlestick chart is

var width = 900;
var height = 600;
// construct a domain with financetime scale
var x = techan.scale.financetime().range([0, width])
var y = d3.scale.linear().range([height, 0]);
var candlestick = techan.plot.candlestick().xScale(x).yScale(y);

TODO: example of candlestick with d3 time scale

OHLC

Volume

Simple Moving Average

Exponential Moving Average

MACD

RSI

Clone this wiki locally