{"id":13683098,"url":"https://github.com/isaiahbjork/Auto-GPT-MetaTrader-Plugin","last_synced_at":"2025-04-30T12:33:18.894Z","repository":{"id":154211428,"uuid":"631084358","full_name":"isaiahbjork/Auto-GPT-MetaTrader-Plugin","owner":"isaiahbjork","description":"The AutoGPT MetaTrader Plugin is a software tool that enables traders to connect their MetaTrader 4 or 5 trading account to Auto-GPT.","archived":false,"fork":false,"pushed_at":"2023-11-12T19:29:22.000Z","size":103,"stargazers_count":500,"open_issues_count":10,"forks_count":85,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-04-04T23:17:32.085Z","etag":null,"topics":["autogpt","crypto","finance","forex","gpt-3","gpt-4","metatrader","metatrader-4","metatrader-5","metatrader5","mt4","mt5","stocks","trading"],"latest_commit_sha":null,"homepage":"https://github.com/isaiahbjork/Auto-GPT-MetaTrader-Plugin","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isaiahbjork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"isaiahbjork","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-04-21T22:22:03.000Z","updated_at":"2025-03-30T21:32:20.000Z","dependencies_parsed_at":"2023-11-12T20:27:28.278Z","dependency_job_id":null,"html_url":"https://github.com/isaiahbjork/Auto-GPT-MetaTrader-Plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"Significant-Gravitas/Auto-GPT-Plugin-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaiahbjork%2FAuto-GPT-MetaTrader-Plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaiahbjork%2FAuto-GPT-MetaTrader-Plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaiahbjork%2FAuto-GPT-MetaTrader-Plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaiahbjork%2FAuto-GPT-MetaTrader-Plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaiahbjork","download_url":"https://codeload.github.com/isaiahbjork/Auto-GPT-MetaTrader-Plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251701831,"owners_count":21629901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autogpt","crypto","finance","forex","gpt-3","gpt-4","metatrader","metatrader-4","metatrader-5","metatrader5","mt4","mt5","stocks","trading"],"created_at":"2024-08-02T13:02:00.286Z","updated_at":"2025-04-30T12:33:18.634Z","avatar_url":"https://github.com/isaiahbjork.png","language":"Python","funding_links":["https://github.com/sponsors/isaiahbjork"],"categories":["Python","GitHub projects"],"sub_categories":[],"readme":"# Auto-GPT MetaTrader Plugin 📈\nThe AutoGPT MetaTrader Plugin is a software tool that enables traders to connect their MetaTrader 4 or 5 trading account to Auto-GPT.\n\n[Try MetaTrader GPT on ChatGPT](https://chat.openai.com/g/g-sZE9jEsXA-metatrader-gpt)\n\n[![GitHub Repo stars](https://img.shields.io/github/stars/isaiahbjork/Auto-GPT-MetaTrader-Plugin?style=social)](https://github.com/isaiahbjork/Auto-GPT-MetaTrader-Plugin/stargazers)\n\n\u003ch2 align=\"center\"\u003e 💖 Help Support Auto-GPT Plugin's Development 💖\u003c/h2\u003e\n\u003cp align=\"center\"\u003e\nIf 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!\nYour support is greatly appreciated. Development of this free, open-source project is made possible by all the \u003ca href=\"https://github.com/isaiahbjork/Auto-GPT-MetaTrader-Plugin/graphs/contributors\"\u003econtributors\u003c/a\u003e and \u003ca href=\"https://github.com/sponsors/isaiahbjork\"\u003esponsors\u003c/a\u003e. If you'd like to sponsor this project and have your avatar or company logo appear below \u003ca href=\"https://github.com/sponsors/isaiahbjork\"\u003eclick here\u003c/a\u003e.\n\nCrypto Donations: 0x2457e8746EFa5894b70aE06a1b391474bc928B05\n\u003c/p\u003e\n\n\n## 💡 Key Features:\n- 💰 **Place Trades**\n- ℹ️ **Account Information**\n- ⛔️ **Close Trade**\n- ❌ **Close All Trades**\n- 🕯 **Candlestick Data**\n- 📈 **Stock of The Day**\n- 📂 **Red Folder News**\n- ％ **Community Sentiment** (In-Progress)\n- 📝 **Modify Trades** (In-Progress)\n## 🔧 Installation\n\nFollow these steps to configure the Auto-GPT MetaTrader Plugin:\n\n### 1. Clone the Auto-GPT-MetaTrader-Plugin repository\nClone this repository and navigate to the `Auto-GPT-MetaTrader-Plugin` folder in your terminal:\n\n```bash\ngit clone https://github.com/isaiahbjork/Auto-GPT-MetaTrader-Plugin.git\n```\n\n### 2. Install required dependencies\nExecute the following command to install the necessary dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n### 3. Package the plugin as a Zip file\nCompress the `Auto-GPT-MetaTrader-Plugin` folder or [download the repository as a zip file](https://github.com/isaiahbjork/Auto-GPT-MetaTrader-Plugin/archive/refs/heads/master.zip).\n\n### 4. Install Auto-GPT\nIf you haven't already, clone the [Auto-GPT](https://github.com/Significant-Gravitas/Auto-GPT) repository, follow its installation instructions, and navigate to the `Auto-GPT` folder.\n\nYou might have to run this in the Auto-GPT file if you get an error saying \"No Module Found\".\n\n```bash\npip install ta myfxbook\n```\n### 5. Copy the Zip file into the Auto-GPT Plugin folder\nTransfer the zip file from step 3 into the `plugins` subfolder within the `Auto-GPT` repo.\n\n### 6. Locate the `.env.template` file\nFind the file named `.env.template` in the main `/Auto-GPT` folder.\n\n### 7. Create and rename a copy of the file\nDuplicate the `.env.template` file and rename the copy to `.env` inside the `/Auto-GPT` folder.\n\n### 8. Edit the `.env` file\nOpen the `.env` file in a text editor. Note: Files starting with a dot might be hidden by your operating system.\n\n### 9. Add MetaTrader configuration settings\nAppend the following configuration settings to the end of the file:\n\n```ini\n################################################################################\n### METATRADER\n################################################################################\nMETA_API_ACCOUNT_ID=\nMETA_API_TOKEN=\nMETA_API_REGION=\nLUNAR_CRUSH_API_KEY=\nMY_FX_BOOK_USERNAME=\nMY_FX_BOOK_PASSWORD=\nFCS_API_KEY=\n```\n- Create a [MetaAPI](https://metaapi.cloud) account and connect to your broker.\n- MT5 accounts will need to have a paid account to access candlestick data.\n- Create a [MyFxBook](https://myfxbook.com) account and connect to your trading accounts.\n- Create a [FCS API](https://fcsapi.com) account. (500 calls/mo for free)\n- Set `META_API_ACCOUNT_ID` to your MetaAPI account ID. \n- Set `META_API_TOKEN` to your MetaAPI token.\n- Set `META_API_REGION` to your MetaAPI region (new-york, london, singapore).\n- Set `LUNAR_CRUSH_API_KEY` to your LunarCrush API Key.\n- Set `MY_FX_BOOK_USERNAME` to your MyFxBook username/email.\n- Set `MY_FX_BOOK_PASSWORD` to your MyFxBook password.\n- Set `FCS_API_KEY` to your FCS API KEY.\n### 10. Allowlist Plugin\nIn your `.env` search for `ALLOWLISTED_PLUGINS` and add this Plugin:\n\n```ini\n################################################################################\n### ALLOWLISTED PLUGINS\n################################################################################\n#ALLOWLISTED_PLUGINS - Sets the listed plugins that are allowed (Example: plugin1,plugin2,plugin3)\nALLOWLISTED_PLUGINS=AutoGPTMetaTraderPlugin\n```\n### 11. Review Available Commands\nYou can review the available commands and indicators [here](/src/auto_gpt_metatrader/commands.txt).\n\n## 🧪 Test the Auto-GPT MetaTrader Plugin\n\nExperience the plugin's capabilities by testing it for placing trades, managing your account, closing trades, and fetching candlestick data.\n\n###  Test Fetching Candlestick Data\n\n1. **Configure Auto-GPT:**\n   Set up Auto-GPT with the following parameters:\n   - Name: `TradeGPT`\n   - Role: `fetch candlestick data`\n   - Goals:\n     1. Goal 1: `fetch candlestick data for the 1 hour chart on EURUSD`\n     2. Goal 2: `Terminate`\n\n2. **Run Auto-GPT:**\n   Launch Auto-GPT, which should use the MetaTrader plugin and it should load the candlestick data.\n\n\n3. **Sample response:**\n\u003cimg width=\"1063\" alt=\"auto-gpt-email-plugin\" src=\"https://i.ibb.co/qjt9QTw/fetch-candlesticks.png\"\u003e\n\n## 📉 Indicators (In-Progress):\n-  **Relative Strength Index (RSI)**\n-  **Volume**\n-  **Moving Averages (SMA, EMA, WMA, MAE, OsMA, MACD)**\n-  **Fibonacci Retracement**\n-  **Bollinger Bands**\n-  **Money Fund Index (MFI)**\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaiahbjork%2FAuto-GPT-MetaTrader-Plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaiahbjork%2FAuto-GPT-MetaTrader-Plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaiahbjork%2FAuto-GPT-MetaTrader-Plugin/lists"}