Add a marker on a candle graph

조회 수: 4 (최근 30일)
Guglielmo Sabatelli
Guglielmo Sabatelli 2020년 10월 8일
댓글: Guglielmo Sabatelli 2020년 10월 15일
I read file EXPORT9 ( attached ) and I plot a candle graph as follow:
A=readtable('EXPORT9');
B=table2timetable(A);
f=figure;
candle(B(range,:),'b')
title('High, Low, Open, Close Chart for TMW')
How can I add a marker on a specific data with a specific prize?

답변 (1개)

Pranav Verma
Pranav Verma 2020년 10월 15일
Hi Guglielmo,
Candlestick chart represents the fluctuation of prices in a time frame. From the data passed to the candle function as an argument, the candlesticks are plotted which shows the opening and closing prices in the time frame ie, the fluctuation occured in the prices in each time frame. Markers on the other hand are specific data points which occur in the dataset and in the case of candlesticks chart would not be the correct way to visualise data.
However to see the opening and closing values of a candlestick, you can click on the opening and closing price on the candles in the generated candlestick chart.
Please refer to the below documentation on candlestick graph for more information:
  댓글 수: 1
Guglielmo Sabatelli
Guglielmo Sabatelli 2020년 10월 15일
Hi Pranav
Thank you for the answer but I would like to do another thing.
I can create a candle graph and I know how to visualize a marker on the graph.
I would like to add a marker, over or under a specific candle, on the graph yet created.I've attached an image just for example. How can I plot for example the red and blue points?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by