GithubHelp home page GithubHelp logo

alf28dev / statistical_arbitrage_position_management Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 17 KB

A platform to manage positions for my statistical arbitrage trading strategy.

Python 54.49% CSS 6.77% HTML 38.74%
css database flask html oop python sql

statistical_arbitrage_position_management's Introduction

Statistical Arbitrage Position Management

To trade the statistical arbitrage trading strategy found here, I have developed a platform using Flask which will organise the positions in a manner which makes them easy to track and understand.

Whenever my software detects a pair which meets my criteria, it will be placed within the pending orders database table. I can then open this position within my brokerage manually. After I have filled the order, I can select open, and the position will then move to the open positions database table. The position will remain here until my software detects that the position needs to be closed.

When my software detects that the position needs to be closed, a new record will be placed within the pending close database table. This record will contain the new current prices of the two stocks. After closing the position within my brokerage, I can then select the close button. The trade PL will be placed within the trade log database table, and the positions will be removed from the pending close and current positions database.

Software Screenshot

Screenshot 2022-05-31 at 11 07 49

Future Improvements

  • Add cancel button functionality.
  • Provide accurate statistics regarding the performance of the strategy.
  • Integerate a brokerage API so that orders can be placed directly/automatically without the need for human interaction.

statistical_arbitrage_position_management's People

Contributors

alf28dev avatar

Stargazers

Alexander Goncharov 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.