Code Monkey home page Code Monkey logo

auto-gpt-metatrader-plugin's Introduction

Auto-GPT MetaTrader Plugin ๐Ÿ“ˆ

The AutoGPT MetaTrader Plugin is a software tool that enables traders to connect their MetaTrader 4 or 5 trading account to Auto-GPT.

GitHub Repo stars

๐Ÿ’ก Key Features:

  • ๐Ÿ’ฐ Place Trades
  • โ„น๏ธ Account Information
  • โ›”๏ธ Close Trade
  • โŒ Close All Trades
  • ๐Ÿ•ฏ Candlestick Data

๐Ÿ”ง Installation

Follow these steps to configure the Auto-GPT MetaTrader Plugin:

1. Clone the Auto-GPT-MetaTrader-Plugin repository

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

2. Install required dependencies

Execute the following command to install the necessary dependencies:

pip install -r requirements.txt

3. Package the plugin as a Zip file

Compress the Auto-GPT-MetaTrader-Plugin folder or download the repository as a zip file.

4. Install Auto-GPT

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 Moudle Found".

pip install ta

5. Copy the Zip file into the Auto-GPT Plugin folder

Transfer the zip file from step 3 into the plugins subfolder within the Auto-GPT repo.

6. Locate the .env.template file

Find the file named .env.template in the main /Auto-GPT folder.

7. Create and rename a copy of the file

Duplicate the .env.template file and rename the copy to .env inside the /Auto-GPT folder.

8. Edit the .env file

Open the .env file in a text editor. Note: Files starting with a dot might be hidden by your operating system.

9. Add MetaTrader configuration settings

Append the following configuration settings to the end of the file:

################################################################################
### METATRADER
################################################################################
META_API_ACCOUNT_ID=
META_API_TOKEN=
  • Create a MetaAPI account and connect to your broker.
  • Set META_API_ACCOUNT_ID to your MetaAPI account ID.
  • Set META_API_TOKEN to your MetaAPI token.

10. Allowlist Plugin

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

๐Ÿงช Test the Auto-GPT MetaTrader Plugin

Experience the plugin's capabilities by testing it for placing trades, managing your account, closing trades, and fetching candlestick data.

Test Fetching Candlestick Data

  1. Configure Auto-GPT: Set up Auto-GPT with the following parameters:

    • Name: TradeGPT
    • Role: fetch candlestick data
    • Goals:
      1. Goal 1: fetch candlestick data for the 1 hour chart on EURUSD
      2. Goal 2: Terminate
  2. Run Auto-GPT: Launch Auto-GPT, which should use the MetaTrader plugin and it should load the candlestick data.

  3. Sample response:

auto-gpt-email-plugin

๐Ÿ“‰ Indicators (In-Progress):

  • Relative Strength Index (RSI)
  • Volume
  • Moving Averages (SMA, EMA, WMA, MAE, OsMA, MACD)
  • Fibonacci Retracement
  • Bollinger Bands
  • Money Fund Index (MFI)

auto-gpt-metatrader-plugin's People

Contributors

isaiahbjork avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.