Giter Site home page Giter Site logo

pylivetrader-demo's Introduction

Live RSI Momentum Trading with pylivetrader

Use the RSI signal to drive algorithm buying and selling decisions. When the RSI is over 70, a stock is considered overbought and is sold (or shorted). On the other hand, when the RSI is below 30, a stock is considered oversold and is bought. Here is additional information from Investorpedia.

Create and set-up a new virtual environment in Conda

Download and install Anaconda

Create a new environment in your conda navigator or terminal and use Python version 3.6 given dependencies.

$ conda create -n ziplive36 python=3.6

Activate the new environment.

$ conda activate ziplive36

Install pylivetrader

pip install pylivetrader

Install the Python wrapper for TA-Lib

$ pip install TA-Lib

Supported Brokers

Alpaca

Configuration by environment variables.

$ export APCA_API_KEY_ID={your api key id}

$ export APCA_API_SECRET_KEY={your api secret key}

$ export APCA_API_BASE_URL={https://api.alpaca.markets/ or https://paper-api.alpaca.markets}

$ pylivetrader run -f algo.py

Configuration by config file. Either yaml or json.

$ cat config.yaml

key_id: {your api key id}

secret: {your api secret key}

base_url: {https://api.alpaca.markets/ or https://paper-api.alpaca.markets}

$ pylivetrader run -f algo.py --backend-config config.yaml

Disclaimer - This is just a demo algo and using it 'as is' carries significant financial risk, so don't use it. All code and content is for educational purposes only and is not financial advice.

pylivetrader-demo's People

Contributors

aspromatis avatar

Stargazers

Maximilian Wimmer 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.