The AutoGPT MetaTrader Plugin is a software tool that enables traders to connect their MetaTrader 4 or 5 trading account to Auto-GPT.
Try MetaTrader GPT on ChatGPT
If you can spare a coffee, you can help to cover the costs of developing Auto-GPT Plugins and help to push the boundaries of fully autonomous AI! Your support is greatly appreciated. Development of this free, open-source project is made possible by all the contributors and sponsors. If you'd like to sponsor this project and have your avatar or company logo appear below click here.
Crypto Donations: 0x2457e8746EFa5894b70aE06a1b391474bc928B05
Follow these steps to configure the Auto-GPT MetaTrader Plugin:
Clone this repository and navigate to the Auto-GPT-MetaTrader-Plugin
folder in your terminal:
git clone https://github.com/isaiahbjork/Auto-GPT-MetaTrader-Plugin.git
Execute the following command to install the necessary dependencies:
pip install -r requirements.txt
Compress the Auto-GPT-MetaTrader-Plugin
folder or download the repository as a zip file.
If you haven't already, clone the Auto-GPT repository, follow its installation instructions, and navigate to the Auto-GPT
folder.
You might have to run this in the Auto-GPT file if you get an error saying "No Module Found".
pip install ta myfxbook
Transfer the zip file from step 3 into the plugins
subfolder within the Auto-GPT
repo.
.env.template
fileFind the file named .env.template
in the main /Auto-GPT
folder.
Duplicate the .env.template
file and rename the copy to .env
inside the /Auto-GPT
folder.
.env
fileOpen the .env
file in a text editor. Note: Files starting with a dot might be hidden by your operating system.
Append the following configuration settings to the end of the file:
################################################################################
### METATRADER
################################################################################
META_API_ACCOUNT_ID=
META_API_TOKEN=
META_API_REGION=
LUNAR_CRUSH_API_KEY=
MY_FX_BOOK_USERNAME=
MY_FX_BOOK_PASSWORD=
FCS_API_KEY=
META_API_ACCOUNT_ID
to your MetaAPI account ID.META_API_TOKEN
to your MetaAPI token.META_API_REGION
to your MetaAPI region (new-york, london, singapore).LUNAR_CRUSH_API_KEY
to your LunarCrush API Key.MY_FX_BOOK_USERNAME
to your MyFxBook username/email.MY_FX_BOOK_PASSWORD
to your MyFxBook password.FCS_API_KEY
to your FCS API KEY.In your .env
search for ALLOWLISTED_PLUGINS
and add this Plugin:
################################################################################
### ALLOWLISTED PLUGINS
################################################################################
#ALLOWLISTED_PLUGINS - Sets the listed plugins that are allowed (Example: plugin1,plugin2,plugin3)
ALLOWLISTED_PLUGINS=AutoGPTMetaTraderPlugin
You can review the available commands and indicators here.
Experience the plugin's capabilities by testing it for placing trades, managing your account, closing trades, and fetching candlestick data.
Configure Auto-GPT: Set up Auto-GPT with the following parameters:
TradeGPT
fetch candlestick data
fetch candlestick data for the 1 hour chart on EURUSD
Terminate
Run Auto-GPT: Launch Auto-GPT, which should use the MetaTrader plugin and it should load the candlestick data.
Sample response: