分析金融市场的微结构。

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)下。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何拆分字符串(基于各种分隔符),但不保留空格?   解析。Json格式的txt文件和knime中的java   java Spring rest api为什么在rest api调用的响应中更改了数据类型   升华文本3抛出java。lang.ClassNotFoundException,而记事本++不存在   java Android指纹扫描仪在尝试5次后停止工作?   java Android如何设置精确的重复报警?   java如何使用HTTPGET connect为access API输入用户名和密码   java当测试报告显示没有测试失败时,Gradle为什么说“有失败的测试”?   用Gson实现java获取响应   MapReduce程序中函数错误的java不可映射参数   java spring安全性不符合自动代理的条件   java GWT使用异步回调进行同步/阻塞调用   java奇怪的类数组问题无法在jsp中显示   如何在java中使用PrinterJob使用epl打印条形码   java如何在JTable中居中单元格   将Java Mockito测试转换为Kotlin   html Java正则表达式模式匹配到多个相同标记   testCompile中缺少java Gradle(Android)多项目依赖项   在输入提示后输入字符串时发生java FileNotFoundException