Setup Instructions - Chart Copilot

2 July 2026, 15:15
George Angelo Boutselis
0
75

Chart Copilot — Setup

Getting started: purchase Chart Copilot from the MQL5 Market and attach it to any chart.

Step 1 — Allow the WebRequest URL (required)

Chart Copilot talks to language models over the internet, so MetaTrader 5 needs permission to reach them.

In MT5, open Tools > Options > Expert Advisors tab, tick "Allow WebRequest for listed URL:" and add the address below:

Whitelist url

Step 2 — Use your own API key (optional)

Prefer to connect directly to a provider with your own key? Add that provider's URL to the same WebRequest list, then paste your key into Chart Copilot's settings (see the screenshot below). Only add the ones you actually plan to use.

Where to paste your API key

1. OpenAI (ChatGPT / GPT models)

2. Anthropic (Claude)

3. Google (Gemini)

Tip: treat API keys like passwords. Never share a screenshot of MT5's Options window with a key visible, and revoke a key immediately if it leaks.

Step 3 — Async Worker on a second chart (optional)

This step is optional. Chart Copilot works perfectly on a single chart. The Async Worker is a performance option for users who want the main chart to stay perfectly smooth.

Why: In MetaTrader 5, a WebRequest runs on the chart's own execution thread, so while a request to the model is in flight, that chart is busy waiting for the reply. On a single chart this can cause a brief pause during a request. Offloading those requests to a separate "worker" chart keeps the chart you're actually using fully responsive — the main chart hands the network call to the worker and carries on.

How to enable it:

  1. Open a second chart (any symbol or timeframe — it only needs to exist; a spare, minimized chart is fine).
  2. Attach the Async Worker EA (included with this post) to that chart.
  3. Leave your primary Chart Copilot chart in its normal mode — it will route its WebRequests through the worker automatically.

Notes:

  • If you skip this step, everything still works — you may just notice a short pause on the main chart during a request.


Files:
AsyncWorker.ex5  13 kb