Developed in Python, it uses the MetaTrader5 API and the DearPyGui user interface to provide an efficient and easy-to-use trading experience. This bot is based on a hedging strategy that takes advantage of market volatility during opening sessions.
- Python 3.11.4
- Pipenv
- Make sure you have Python 3.11.4 installed on your system. You can check your Python version with the following command:
python --version
- Install Pipenv, which is a packaging tool for Python. You can install it with the following command:
pip install pipenv
- Clone the Coin repository:
git clone https://github.com/davdcsam/Coin.git
cd Coin
- Activate Pipenv virtual environment:
pipenv shell
- Install the project dependencies with Pipenv:
pipenv install
- Activate Pipenv virtual environment:
pipenv shell
- Run the main Coin script:
python main.py
This will open the Coin user interface, where you can interact with the MetaTrader5 API.
This project uses PyInstaller to convert the Python script into an executable file. To create the executable file, follow these steps:
- First, switch to main_build branch
git checkout main_build
- Activate Pipenv virtual environment:
pipenv shell
- Make sure you have PyInstaller installed.
pyinstaller --version
- If you don't have it, you can install it with pip:
pipenv install pyinstaller
- Run the following command in the root of the project:
pyinstaller --onefile --windowed --name=Coin --icon=assets/Coin.ico main.py
This command tells PyInstaller to create an executable file from the main.py
script. The options used are as follows:
--onefile
: Creates a single executable file.--windowed
: Suppresses the console when running the application.--name=Coin
: Sets the executable file name to "Coin".--icon=assets/Coin.ico
: Sets the icon of the executable file to "Coin.ico" located in the "assets" folder.
After creating the executable file, you can copy the assets/
, data/
, and files/
folders to the dist/
folder with the following commands:
For Unix/Linux:
cp -r assets/ data/ files/ dist/
For Windows:
xcopy /E /I assets dist\assets
xcopy /E /I data dist\data
xcopy /E /I files dist\files
For more information on how to use Coin, see the [full documentation no available].
Contributions are welcome. Theren't no a guide for fork or makes pull request yet.
Coin is licensed under the a property license. See the LICENSE
file for details.