Git Product home page Git Product logo

python-trading's Introduction

Python Trading

GitHub repo size GitHub language count GitHub forks Bitbucket open issues Bitbucket open pull requests

img.png

Crossover strategy image example

This project aims to gather negotiation strategies aimed at the financial market, so that people can take as an example the strategies provided in the project.

💻 Prerequisites

  • Language Version Python >= 3.8.
  • OS Linux / Windows / Mac.

🚀 Install

  1. First, clone project repository:
$ git clone https://github.com/preduus/python-trading.git
  1. Creating virtual environment
$ virtualenv -p /usr/bin/python3.8 venv && source venv/bin/activate
OR
$ python3 -m venv $(pwd)/venv && source venv/bin/activate
  1. Install project requirements:
$ pip install -r requirements.txt

Testing

$ pytest -s
=========================================================================================================== test session starts ===========================================================================================================
platform linux -- Python 3.8.10, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: ~/python-trading
collected 9 items                                                                                                                                                                                                                         

tests/test_chinese_example.py ...
tests/test_crossover_example.py ...
tests/test_rsi_example.py ...

============================================================================================================ 9 passed in 0.43s ============================================================================================================

☕ Usage

To see trading strategies working, run:

$ python examples.py

In the example.py file, the algorithm simulates real price movements. The asset used to exemplify was the EURUSD.

📫 Contribute to project

The project needs a lot of input for us to add more trading strategies, if you feel like helping or have a promising strategy idea, please open an issue and help us.

  1. Fork the project.
  2. Create a branch: git checkout -b feature/<branch_name>.
  3. Commit your code changes: git commit -m '<message>'
  4. Push to your work branch: git push origin feature/<branch_name>
  5. Open a pull request.

Alternatively, see on GitHub docs How to create a pull request.

📝 Licença

Distributed under the BSD 3 License. See LICENSE for more information.

⬆ Voltar ao topo

python-trading's People

Contributors

pedrohfocus avatar preduus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hyeongd hossam905

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.