Coder Social home page Coder Social logo

dv-lebedev / pair-trading-view Goto Github PK

View Code? Open in Web Editor NEW
50.0 8.0 32.0 42.23 MB

Pair Trading View - .NET application for visual analysis of synthetic financial instruments based on statistical models.

Home Page: https://dv-lebedev.github.io/pair-trading-view/

License: Apache License 2.0

C# 100.00%
pairs-trading synthetic-financial-instruments investment statistical-models visual-analysis shares stock-market stocks finance pairs trading

pair-trading-view's Introduction

Pair Trading View

Pair Trading View - application for visual analysis of synthetic financial instruments based on statistical models.

[ PairTradingView.WpfApp ]

pic

How To

Execute PairTradingView.exe in 'pair-trading-view\PairTradingView.WpfApp\bin\Debug'.

pic

Set 'Price' column. Put csv files with a historical data into 'pair-trading-view\PairTradingView.WpfApp\bin\Debug\csv-files' folder. Press 'Load Data From File'. Press 'Calculate'.

Model

  • SI -> synthetic index
  • s -> share
  • fp -> financial pair
  • fp_tv -> financial pair's trade volume
  • fp_w -> weight of financial pair

SI_t = ( s1_t + s2_t + s3_t + ... + sn_t ) / n

SI = α + β * fp + err

Financial pair's weight has reverse dependency of β.

fp_w = (1 / (1 + abs(β))) / Σ(fp_w)

fp_tv = balance * fp_w

Calculate trade volume for each share:

fp_tv = x_tv + y_tv

y = α + β * x + err

w = 1.0 / (1.0 + abs(β)

x_tv = fp_tv * w * abs(β)

y_tv = fp_tv * w

Dependencies

  • OxyPloy

License

Apache 2.0

pair-trading-view's People

Contributors

dv-lebedev avatar ovnisoftware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pair-trading-view's Issues

Парная торговля

Дмитрий Здравствуйте , подскажите пожалуйста много делов подключить ваш шедевр к бирже бинанс через АПИ ?

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.