Candlestick question

조회 수: 14 (최근 30일)
Mate 2u
Mate 2u 2011년 2월 10일
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
Mate 2u
Mate 2u 2011년 2월 10일
They are all numbers some have decimal places. But are all positive
Vieniava
Vieniava 2011년 2월 10일
so, which of them are HighPrice,LowPrice,ClosePrice,OpenPrice?

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

채택된 답변

Vieniava
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
Mate 2u
Mate 2u 2011년 2월 10일
??? Error using ==> candle at 47
Please specify input data as column vectors.
This is the error I am receiving
Ned Gulley
Ned Gulley 2011년 2월 10일
Mate2u said: "Thanks solved it just transposed."

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by