Mathematica的日期格式

500*_*500 4 datetime wolfram-mathematica quantitative-finance

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

似乎2000年之后不再处理这些数据了

有办法解决这个问题吗?

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

我知道FinancialData函数.但是,由于不知道确切的符号,因此直接使用Mathematica非常困难.

在此输入图像描述

Vit*_*rov 6

为什么不使用WolframAlpha函数 - 它导入原生Mathematica格式并上升到当前日期:

    timeseries = WolframAlpha["msft close Jan 1, 2010 to Jan 21 2011",
{{"DateRangeSpecified:Close:FinancialData", 1}, "TimeSeriesData"}];
DateListPlot[timeseries]
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

这只是一个输入的例子.我不确定你需要什么样的数据,但是你可以通过WolframAlpha函数获得很多数据.读这个:

1)WolframAlpha 2)Wolfram中的数据格式| Alpha


Bre*_*ion 5

使用该DateFunction选项告诉DateListPlot如何转换日期:

DateFunction -> (DateList[{#, {"MonthNameShort", "YearShort"}}] &)
Run Code Online (Sandbox Code Playgroud)

(括号很重要.)