How to include RSI and Volume in the same chart?

喜欢而已 提交于 2019-12-13 04:43:17

问题


First of all i want to embed RSI plugin with the highstock chart, (i.e) RSI, Volume in the same chart. i tried it with using Highstock (Two panes, candlestick and volume )

http://www.highcharts.com/stock/demo/candlestick-and-volume 

and the RSI indicator plugin

http://jsfiddle.net/BlackLabel/RE7sS/

Any ideas to get it done??


回答1:


To add RSI to any Highstock demo, you need to include required files. In RSI case files are:

  • indicators.js (base)
  • ema.js (required for RSI)
  • rsi.js (RSI plugin)

And example for you: http://jsfiddle.net/jLpbL1db/

Note:

Don't forget to add indicator in options, with link to series.id:

        indicators: [{
            id: "AAPL",
            type: "rsi"
        }],


来源:https://stackoverflow.com/questions/26250952/how-to-include-rsi-and-volume-in-the-same-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!