楼主: 宇辰灬美
1938 2

[期货与大宗商品] Matlab代码求解释 [推广有奖]

  • 2关注
  • 1粉丝

本科生

84%

还不是VIP/贵宾

-

威望
0
论坛币
489 个
通用积分
0.0602
学术水平
7 点
热心指数
7 点
信用等级
6 点
经验
2284 点
帖子
84
精华
0
在线时间
122 小时
注册时间
2013-12-22
最后登录
2019-9-2

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

%日收益率

Daily=Date(hour(Date)==9  & minute(Date)==0 & second(Date)==0);

DailyEquity=DynamicEquity(hour(Date)==9  & minute(Date)==0 & second(Date)==0);

DailyRet=tick2ret(DailyEquity);



DynamicEquity:动态权益      DailyEquity:每日权益


DailyRet:每日收益率

数据源为沪深300股指期货1min数据,大神求解释下最上面三段代码的意思,先谢谢了。

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:matlab代码 MATLAB matla atlab Lab 股指期货 minute second 收益率 数据源

回帖推荐

Chemist_MZ 发表于2楼  查看完整内容

1)Find the position of the data whose trading time is at 9:00:00 everyday,Daily is a logic vector 2) Find the corresponding equity price at 9:00:00 everyday. This line of code is better to be written as: DailyEquity=DynamicEquity(Daily) 3) Convert the equity price to return. tick2ret=tick to return.

本帖被以下文库推荐

沙发
Chemist_MZ 在职认证  发表于 2015-4-11 20:41:15 |只看作者 |坛友微信交流群
1)Find the position of the data whose trading time is at 9:00:00 everyday,Daily is a logic vector
2)  Find the corresponding equity price at 9:00:00 everyday. This line of code is better to be written as: DailyEquity=DynamicEquity(Daily)

3)  Convert the equity price to return. tick2ret=tick to return.
已有 1 人评分经验 论坛币 收起 理由
见路不走 + 5 + 5 精彩帖子

总评分: 经验 + 5  论坛币 + 5   查看全部评分

使用道具

藤椅
宇辰灬美 发表于 2015-4-12 15:19:27 |只看作者 |坛友微信交流群
Chemist_MZ 发表于 2015-4-11 20:41
1)Find the position of the data whose trading time is at 9:00:00 everyday,Daily is a logic vector
...
Thanks very much,I get it.

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jr
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-27 18:12