分析金融市场的微结构。
prophet的Python项目详细描述
啊![先知](docs/_static/img/logo.png?raw=true“Prophet”)
>;Prophet是一款面向金融市场的Python微框架。Prophet致力于让程序员专注于财务策略建模、投资组合管理和分析回溯测试。它实现了这一点,它只有很少的功能来学习在地面上运行,但足够灵活,以适应复杂。[构建状态](https://travis-ci.org/emsu/prophet.svg?branch=master“travis build status”)
有关更多详细信息,请参阅[文档](http://prophet.michaelsu.io/)。
论坛/Prophet Financial Framework)或通过[电子邮件]加入(邮箱:Prophet Financial Framework+subscribe@googlegroups.com?subject=subscribe)。
super(ordergenerator,self).100)
return orders
prophet.set_universe(['aapl','xom'])
prophet.register_data_generators(yahooclosedata())
prophet.set_order_generator(order())
backtest=prophet.run_backtest(start=datetime(2010,1,
>prophet.register_portfolio_分析工具(默认的分析工具)
>analysis=prophet.analyx_backtest(backtest)
>print analysis
~--------
夏普1.09754353535353535353539611
平均回报率0.001050547848425027
/>累积回报率2.168883838383333.2.1688波动性| 0.0152560508189
+---------------------------+
觕生成订单,以便您今天执行
觕使用2014年11月10日作为日期,因为今天的
觕日期(市场可能不开放)可能没有数据,我们不希望示例失败。
today=datetime(2014,11,10)
打印先知。生成订单(今天)
````
``有贡献贡献
>在您的开发环境安装程序中运行以下程序:
```bash
```bash
git clone git@github.com:emsu/prophet.git
cd prophet
virtuallenv env
pip install dev dev dev requirements.txt
python setup.pypython devdevup
``````
```````有贡献
/>``请在您的开发如果没有Prophet中的[Trading Calendar Util](https://github.com/pydata/pandas)库,灵感来自[qstk](https://github.com/tucker777/qstk)和[zipline](https://github.com/quantopian/zipline)。
Prophet中的[Trading Calendar Util](https://github.com/emsu/Prophet/blob/master/Prophet/Utils/TradingCalendar.py)来自[zipline](https://github.com/quantopian/zipline),它在[apache 2.0许可证(https://github.com/quantopian/zipline/blob/master/license)下。
>;Prophet是一款面向金融市场的Python微框架。Prophet致力于让程序员专注于财务策略建模、投资组合管理和分析回溯测试。它实现了这一点,它只有很少的功能来学习在地面上运行,但足够灵活,以适应复杂。[构建状态](https://travis-ci.org/emsu/prophet.svg?branch=master“travis build status”)
有关更多详细信息,请参阅[文档](http://prophet.michaelsu.io/)。
论坛/Prophet Financial Framework)或通过[电子邮件]加入(邮箱:Prophet Financial Framework+subscribe@googlegroups.com?subject=subscribe)。
super(ordergenerator,self).100)
return orders
prophet.register_data_generators(yahooclosedata())
prophet.set_order_generator(order())
backtest=prophet.run_backtest(start=datetime(2010,1,
>prophet.register_portfolio_分析工具(默认的分析工具)
>analysis=prophet.analyx_backtest(backtest)
>print analysis
~--------
夏普1.09754353535353535353539611
平均回报率0.001050547848425027
/>累积回报率2.168883838383333.2.1688波动性| 0.0152560508189
+---------------------------+
觕生成订单,以便您今天执行
觕使用2014年11月10日作为日期,因为今天的
觕日期(市场可能不开放)可能没有数据,我们不希望示例失败。
today=datetime(2014,11,10)
打印先知。生成订单(今天)
````
``有贡献贡献
>在您的开发环境安装程序中运行以下程序:
```bash
```bash
git clone git@github.com:emsu/prophet.git
cd prophet
virtuallenv env
pip install dev dev dev requirements.txt
python setup.pypython devdevup
``````
```````有贡献
/>``请在您的开发如果没有Prophet中的[Trading Calendar Util](https://github.com/pydata/pandas)库,灵感来自[qstk](https://github.com/tucker777/qstk)和[zipline](https://github.com/quantopian/zipline)。
Prophet中的[Trading Calendar Util](https://github.com/emsu/Prophet/blob/master/Prophet/Utils/TradingCalendar.py)来自[zipline](https://github.com/quantopian/zipline),它在[apache 2.0许可证(https://github.com/quantopian/zipline/blob/master/license)下。