Skip to content

Repository files navigation

本质是遗传算法应用时序函数,后续改进方向是加入时间切片函数 用原始因子合成遗传算法选择的因子,然后进行回测,月度周度换手均可

主程序在新回测,也可以进行预测,在新实盘 首先要爬数据,用因子三年获取和收盘价获取到两个pkl文件

The essence is the application of a genetic algorithm to time-series functions. Future improvements involve incorporating time-slicing functions.

Use original factors to synthesize factors selected by the genetic algorithm, followed by backtesting. Monthly or weekly turnover can be applied.

The main program is used for new backtesting and can also be utilized for forecasting in live trading.

First, data must be scraped. Obtain two pickle files: one for factor data over three years and another for closing prices.

toolkit是核心,提供了库,英文文件是一些小垃圾

现加入全因子获取 基础因子 (12个):

close, open, high, low - 价格

pct_chg - 涨跌幅

vol, amount - 成交量能

pe, pb - 估值

turnover_rate - 换手率

total_mv, circ_mv - 市值

衍生技术指标 (8+个):

MA5, MA10, MA20 - 移动平均线

RETURN_5, RETURN_10, RETURN_20 - 收益率动量

VOLATILITY_20 - 波动率

VOLUME_MA5, VOLUME_MA20 - 成交量均线

About

遗传算法自动选股推荐 支持回测

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages