Skip to content

Our objective is to create fantastic trading strategies and allow everyone to achieve financial independence using technology.

License

Notifications You must be signed in to change notification settings

preduus/python-trading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Our objective is to create fantastic trading strategies and allow everyone to achieve financial independence using technology.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages