Coder Social home page Coder Social logo

whiterabbitobj / nexttrade Goto Github PK

View Code? Open in Web Editor NEW

This project forked from austin-starks/nexttrade

0.0 1.0 0.0 51.4 MB

A system that performs algorithmic trading - for research only

License: MIT License

JavaScript 0.78% TypeScript 98.95% HTML 0.26%

nexttrade's Introduction

NextTrade

A system to create, test, optimize, and deploy algorithmic trading strategies

Features

  1. Combine simple conditions to form compound conditions. Combine compound conditions and create trading strategies.
    • For example:
      • Condition A: QQQ stock is 1 SD below its 5-day mean price
      • Condition B: Buying power is above $8,000.
      • Condition C: Condition A and condition B
      • Strategy: If condition C, buy $3000 of SPY
  2. Create unlimited portfolios with different combinations of strategies
  3. Backtest those strategies using historical data.
    • Only stocks are currently supported, but cryptocurrency and options support is baked into the architecture
  4. Optimize the strategy's parameters using a genetic algorithm
    • Choose hyperparameters like mutation rate, training period, validation period, and population size
    • Choose to optimize percent gain, sortino ratio, sharpe ratio, or max drawdown
  5. Deploy the strategies live and see how it performs in real-time

System Architecture and Design

Some architectural artifacts can be found at this link: https://drive.google.com/drive/folders/1TgZNGPd7TBWi47dWh0TI2nZ_9WUhv_P_?usp=sharing

Installation

  1. Clone the repository.
  2. Download MongoDB community edition. Turn on MongoDB. It is recommended that you turn it on in the background so that you can close the tab.
  3. Open your IDE to the NextTrade folder. It is recommended to use VSCode, but you can use any IDE that you want. Open a terminal window within the IDE.
  4. Install the dependencies: npm run install-all
  5. Make sure all tests pass: cd app; npm t
  6. Add secrets to the env file (in app folder) and rename the file to .env

Turning on the system

To turn on the client and server:

  1. Open two terminal windows.
  2. In one window, turn on the client: cd client; npm start
  3. In the other window, turn on the server: cd app; npm start

nexttrade's People

Contributors

austin-starks avatar

Watchers

James Cloos 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.