This project focuses on developing an algorithmic trading system to automate trading decisions in financial markets. The goal is to leverage computer algorithms and mathematical models to execute trades efficiently, capitalize on market opportunities, and remove human biases from the decision-making process.
- Algorithmic Trading
The Algorithmic Trading Project aims to design and implement an automated trading system using cutting-edge algorithms and market analysis techniques. The project leverages the power of technology to analyze market data, identify trading opportunities, and execute trades with minimal latency. By automating trading decisions, we can enhance speed, accuracy, and consistency while reducing emotional biases.
git clone https://github.com/PedroFerreiraBento/MT5-Algorithmic-Trading.git
cd MT5-Algorithmic-Trading
- Install prerequisites:
sudo apt-get update sudo apt-get install curl git
- Install
pyenv
:curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- Add
pyenv
to your shell configuration file (e.g.,~/.bashrc
or~/.bash_profile
):echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(pyenv init -)"' >> ~/.bashrc echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc source ~/.bashrc
- Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install
pyenv
using Homebrew:brew update brew install pyenv
- Add
pyenv
to your shell configuration file (e.g.,~/.bash_profile
or~/.zshrc
):echo 'eval "$(pyenv init --path)"' >> ~/.zshrc echo 'eval "$(pyenv init -)"' >> ~/.zshrc echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc source ~/.zshrc
- Install the
pyenv-win
running the following command in a PowerShell terminal:Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
- If you are getting any
UnauthorizedAccess
error then start Windows PowerShell with the "Run as administrator" option and runSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
, now re-run the above installation command.
pyenv install --skip-existing "$(cat .python-version)"
python -m venv venv/TradingEnvironment
-
.\venv\TradingEnvironment\Scripts\activate
-
source venv/TradingEnvironment/bin/activate
pip install -r requirements.txt
python ./setup.py install
If you want to change the packages while developing, instead of the above command, run the following:
pip install -e .
-
Run the project:
python main.py
Contributions are welcome! If you have any improvements or bug fixes, feel free to submit a pull request. Please make sure to follow the contribution guidelines.
This project is licensed under the MIT License.