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.
- Language Version
Python >= 3.8. - OS
Linux / Windows / Mac.
- First, clone project repository:
$ git clone https://github.com/preduus/python-trading.git- Creating virtual environment
$ virtualenv -p /usr/bin/python3.8 venv && source venv/bin/activate
OR
$ python3 -m venv $(pwd)/venv && source venv/bin/activate- Install project requirements:
$ pip install -r requirements.txt$ 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 ============================================================================================================To see trading strategies working, run:
$ python examples.pyIn the example.py file, the algorithm simulates real price movements. The asset used to exemplify was the EURUSD.
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.
- Fork the project.
- Create a branch:
git checkout -b feature/<branch_name>. - Commit your code changes:
git commit -m '<message>' - Push to your work branch:
git push origin feature/<branch_name> - Open a pull request.
Alternatively, see on GitHub docs How to create a pull request.
Distributed under the BSD 3 License. See LICENSE for more information.
