Animate candle chart in matlab

2 次查看(过去 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