datetime - Mathematica 的日期格式

标签 datetime wolfram-mathematica quantitative-finance

当我尝试在 Mathematica 中绘制一些金融时间序列时,我遇到了下图所示的问题:

似乎2000年后不再处理数据

有办法解决吗?

从 Bloomberg 或 Excel 导出时间序列以在数学中使用它们的最佳格式是什么(使用版本 8)。

我确实了解 FinancialData 函数。然而,由于不知道确切的符号,直接使用 Mathematica 来实现这一点变得极其困难。

enter image description here

最佳答案

为什么不使用 WolframAlpha[...] 函数 - 它导入 native Mathematica 格式并更新到当前日期:

    timeseries = WolframAlpha["msft close Jan 1, 2010 to Jan 21 2011",
{{"DateRangeSpecified:Close:FinancialData", 1}, "TimeSeriesData"}];
DateListPlot[timeseries]

enter image description here

这只是一个输入示例。我不确定您到底需要什么样的数据,但您可以通过 WolframAlpha 函数获得很多数据。阅读本文:

1) WolframAlpha 2) Data Formats in Wolfram|Alpha

关于datetime - Mathematica 的日期格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8896674/

相关文章:

c# - NodaTime 的 2 个日期之间的部分负周期

c# - C# 中的复杂计算

python - Python 中的抛物线 SAR ....PSAR 保持增长而不是反转

python-3.x - 如何使用带有要价和出价的 pandas 数据框计算成交量加权平均价格 (VWAP)?

django - 仅在 django admin 中显示年份,YearField 而不是 DateField?

c# - 流畅的断言 : Using BeCloseTo on a collection of DateTime properties

animation - Mathematica 二维热方程式动画

python - Pandas DataFrame 列分配 ValueError : Wrong number of items passed

ruby-on-rails - 如何在 Rails 中不使用自定义格式的情况下显示带有 am/pm 的日期时间

python - 比较 Mathematica 和 Python 中的卷积