GithubHelp home page GithubHelp logo

cta_cross_sectional's Introduction

CTA_cross_sectional

To test the effectiveness of cross-sectional momentum(截面动量)

利用米筐借口,提取商品期货交易数据。计算复权因子,根据截面动量进行排序打分,分别构建多头组合,空头组合,多空组合,查看组合表现。

  • 回测期:2005.1.4-2017.1.20
  • 复权方法:向前复权
  • 截面动量:一个时间节点上,做多相同时间区间内涨幅较高的品种,做空涨幅较低的品种,可以获得持续稳定的收益。
  • 组合生成:做多排序前20%的品种作为多头组合,做多排序后20%的组合作为空头组合,做多排序前20%并且做空排序后20%的组合作为多空组合。
  • 排序期R取5,10,15,20,25,30,35,40 调仓周期H取5,10,15,20
  • 以南华商品指数作为benchmark

  1. set_cat.py:从米筐提取期货种类并且剔除股指期货、国债期货。
  2. all_id_close.py:获取所有主力合约收盘价,复权后,作为品种收盘价
  3. cat_return.py:计算所有品种的截面动量
  4. ranking&port.py:根据截面动量排序,生成组合
  5. cal_port_return.py:计算组合收益率,并且与benchmark比较

初步结论,排序期越长,截面动量效应越明显。截面动量效应在2011年以前表现比较出色。

cta_cross_sectional's People

Contributors

evelynpurse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.