technical-indicators
technical-indicators copied to clipboard
Technical Indicators - Plugin for Highcharts
technical-indicators
⛔️ DEPRECATED
This plugin is no longer maintained. Since v6.0, technical indicators are an integrated part of Highstock.
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.
Installation
- Add the script tag pointing to "https://rawgit.com/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.
Algorithms
-
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
: Theperiods
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/