Native support for candlestick charts in Plotly and R

Plotly.js now supports candlestick charts as a chart-type and in this post we’ll highlight how to use this feature in R. We’ll use the quantmod package to retrieve data as well as generate some technical trading signals.

Don’t forget to install the latest version of plotly from github:

Syntax

The syntax is straightforward:

Data

Base candlestick chart with volume panel

Base candlestick chart with Bollinger bands

Base candlestick chart with Chaikin Money Flow

Base candlestick chart with MACD