필터 지우기
필터 지우기

Animate candle chart in matlab

조회 수: 3 (최근 30일)
Mircea Anghel
Mircea Anghel 2013년 6월 17일
Hello all, I'm having some trouble animating a candle chart in matlab.
imagine I have a tsobj with HLOC data from a stock, and I want the chart to date to appear candle by candle for back testing purpose.
Does anyone know how to feed data to the chart.
using plot() it's easy set(h,'Ydata',..,'XData',...)~ but for the candle chart I can't find the property list.
Thanks all
  댓글 수: 2
Jan
Jan 2013년 6월 17일
Because I do not know, what a "tsobj with HLOC data from a stock" is, posting some example code to produce such a diagram with dummy data would be helpful to formulate an answer.
Mircea Anghel
Mircea Anghel 2013년 6월 17일
Hi Jan, tsobj is time series object HLOC is high low open close prices of the stock. This are the values required by the candle plot (<http://www.mathworks.com/help/finance/candle.html>)~
I can give you an example of what I want with the plot function:
x=rand(15,1);
xplot=plot(x(1,1));
for i=1:size(x,1)
set(xplot,'YData',x(1:i,1))
end
this feeds data to the chart, so if you want to put live data in the chart you don't need to replot. but i'm not able to do it with candle chart.
Thanks,
Let me know if you understand my question

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by