简体   繁体   English

计算并绘制R中股票市场的每小时/每日/月平均波动率?

[英]Calculate and plot average volatility per hour/day/month for stock markets in R?

Here's what I'm trying to accomplish in R: - Calculate and plot average volatility per hour/day/month for stock markets (or single quotes) - Calculate and plot average returns per hour/day/month for stock markets (or single quotes). 以下是我在R中想要实现的目标: - 计算并绘制股票市场(或单引号)的每小时/每日/月平均波动率 - 计算并绘制股票市场(或单引号)的每小时/每日/月平均回报率)。

Basically I'm trying to determine things like "Trading day of the week" and "what's the time of the day with the highest trading volatility?". 基本上我正在尝试确定诸如“一周的交易日”和“交易波动性最高的一天中的什么时间”这样的事情。

Any explanation, link to functions or concepts I should be looking is very much appreciated! 任何解释,链接到我应该看的功能或概念非常感谢!

Thanks and regards, Dirk 谢谢和问候,德克

You should probably start by having a look at the CRAN empirical finance taskview: http://cran.r-project.org/web/views/Finance.html 您应该首先查看CRAN经验财务任务视图: http ://cran.r-project.org/web/views/Finance.html

In particular, the quantmod package will do some of what you are asking for: http://cran.r-project.org/web/packages/quantmod/index.html 特别是, quantmod包将完成您要求的一些内容: httpquantmod

Quantmod has a very useful website with many examples: http://www.quantmod.com/examples/intro/ Quantmod有一个非常有用的网站,有很多例子: http ://www.quantmod.com/examples/intro/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM