Python量化交易策略及回测系统

Python93

目录

前言:行文思路

由于本文篇幅较长,而且文中关于python数据分析的知识点、python金融量化的知识点较多,因此在文章的开头先给出本文整体思路,以便读者能够拥有较为清晰的脉络通读全文。
第一部分:模块导入,主要导入后面需要的模块(简单、无重点)。

[En]

The first part: module import, which mainly imports the modules needed later (simple, unfocused).

第二部分:数据获取,鉴于在网络上股票数据不易找到,Wind金融终端等数据库数据收费,通过多方查找,终于让我找到了能够免费下载股票数据的模块,建议大家收藏(简单,非重点)
第三部分:将股票数据转化为新的数据类型,通过上面的方法下载下来的数据类型是我们常见的DataFrame,虽然pandas的功能已经很强大了,但是为了加入新的数据指标以及方便下一步操作,最好还是将DataFrame数据转化为一种新的数据类型(较难,非重点)
第四部分:策略写作,即用代码来表达我们在股票市场上的交易原则(难,关键)

[En]

Part IV: strategy writing, that is, using codes to express our trading principles in the stock market (difficult, key)

第五部分:基于历史上发生过的真实市场数据编制了回测系统,模拟了历史上某一时期真实金融市场上股票的买卖行为。获取这段时间的利润率等数据(更难,关键)

[En]

Part V: the backtest system is compiled, which is based on the real market data that has occurred in history, and simulates the buying and selling of stocks in the real financial market during a certain period of time in history. get the profit rate and other data in this period of time (more difficult, key)

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长