GithubHelp home page GithubHelp logo

mcm-2022's Introduction

2022 MCM C题 交易策略

模型

  • 决策模型
  • Var风险模型

决策模型(strategy.py)

通过获取对数收益率计算出 Hurst 值,根据 Hurst 值的大小来选择不同的策略

Hurst < 0.5:基于布林线的震荡型决策

Hurst > 0.5:基于双均线的趋势型决策

对于黄金和比特币的权重,通过 Var 的比重进行算出可支配的资金

Var风险模型(price.py)

通过计算几何布朗运动的价格数据,算出最终价格,然后计算出一天的 Var,通过一天的 Var 计算出十天的 Var

基于布林线的震荡型决策

中轨线:100天日均线

下轨线:中轨线 - 收盘价的标准差

停止价格:以20天日均线为底,每多持仓一天相应天数减一

当价格低于下轨线时买入,当价格高于停止价格时卖出

基于双均线的趋势型决策

短均线:10天日均线

长均线:20天日均线

金叉:短均线向上穿越长均线

死叉:短均线向下穿越长均线

金叉买入,死叉卖出

mcm-2022's People

Stargazers

 avatar  avatar  avatar  avatar  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.