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://rawgithub.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. Eithertrendlineorhistogram.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.linearis default.
linear: Demo here: http://jsfiddle.net/laff/etW3K/SMA: Defaultperiodsis 100. Demo here: http://jsfiddle.net/laff/WaEBc/EMA: Defaultperiodsis 100. Demo here: http://jsfiddle.net/laff/U6HMA/- 'MACD':
The
periodsare 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/