Filter löschen
Filter löschen

Animate candle chart in matlab

3 Ansichten (letzte 30 Tage)
Mircea Anghel
Mircea Anghel am 17 Jun. 2013
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 Kommentare
Jan
Jan am 17 Jun. 2013
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 am 17 Jun. 2013
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by