Demo entry 6623788

数据处理

   

Submitted by anonymous on Jun 10, 2017 at 04:59
Language: Matlab. Code size: 212 Bytes.

%%
%数据处理

format short g

mystock=ascii2fts('price3.txt',[],1,4000);
mystock.freq=1;

candle(mystock(1:100))

CLOSE=fts2mat(mystock,{'close'});

rate=price2ret(CLOSE);
[CLOSE(1:5) [rate(1:5)]] %显示前五期

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).