Candlestick Plots in MATLAB®

How to make Candlestick Plots in MATLAB® with Plotly.

Generate a Candlestick Chart for a Data Series for a Stock

Load the file SimulatedStock.mat, which provides a timetable (TMW) for financial data for TMW stock. This is a candlestick chart with blue candles, for the most recent 21 days in SimulatedStock.mat.

load SimulatedStock.mat;
title('Candlestick chart for TMW')


This example shows how to create a candle plot for Disney stock for the dates March 31, 1998 through April 30, 1998.

load disney.mat
title('Disney 3/31/98 to 4/30/98')