This a Highcharts-plugin that allows the user to add technical indicators to their charts.
The contents of the plugin is located in the javascript file "technical-indicators.src.js". This plugin is published under the MIT license, and the license document is including in the repository.
- Add the script tag pointing to "https://rawgh.neting.cc/laff/technical-indicators/master/technical-indicators.src.js".
id:
Give your original dataset an id.type:
This is the series type needed to load the functionality. Eithertrendline
orhistogram
.linkedTo:
Link each of the technical indicators (series) you wish to add, to the original dataset.algorithm:
Choose algorithm / name of the technical indicator you wish to use.linear
is default.
linear
: Demo here: http://jsfiddle.net/laff/etW3K/SMA
: Defaultperiods
is 100. Demo here: http://jsfiddle.net/laff/WaEBc/EMA
: Defaultperiods
is 100. Demo here: http://jsfiddle.net/laff/U6HMA/- 'MACD':
The
periods
are set at 12, 26 and 9.algorithm: 'signalLine'
andalgorithm: 'MACD'
aretype: 'trendline'
. The Histogram has its algorithm loaded by default when choosingtype: 'histogram'
. Demo here: http://jsfiddle.net/laff/SRfW6/