Candlestick question
1 次查看(过去 30 天)
显示 更早的评论
I want to draw a candlestick graph for the entries of my 1x360214 array.
candle(HighPrices, LowPrices, ClosePrices, OpenPrices)
This is predetermined in MATLAB.
For this I need to split this array into sections of like 4000 where for each 4000 I find end entry, start entry, max entry and min entry.
3 个评论
采纳的回答
Vieniava
2011-2-10
If V is your 1x360214 data vector:
seg=4000;
segments=floor(length(V)/seg);
V=V(1: (segments*seg) );
AlgoMatrix=reshape(V, seg, []);
OpenPrices=AlgoMatrix(1,:);
ClosePrices=AlgoMatrix(seg,:);
MinPrices=min(AlgoMatrix);
MaxPrices=max(AlgoMatrix);
2 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!