Build Local “Mediator” Bridge: MT4 (Benson EA) ⇄ ChatGPT (Flow) with Scheduled Screenshots & Auto-Toggle Controls

MQL4 Integration Forex Python

Specification

Scope

Implement a local automation bridge consisting of:

  1. MQL4 Helper EA(s):

    • Take scheduled screenshots from 3 MT4 chart windows (roles: standard , active_open , third_panel ) at 01:30 and 13:30 local machine time.

    • Send the screenshots via WebRequest() to a local Mediator app.

  2. Mediator App (Python FastAPI or NodeJS):

    • Collect all three screenshots for the same time slot, call ChatGPT (Flow) via API using a strict JSON schema, validate the response, and write the output to Shared/settings.json .

    • The JSON file contains toggle flags (AUTO ON/OFF and M1/M5/M15) for Silver (XAGUSD) and Gold (XAUUSD).

    • If a role is missing or JSON is invalid, the mediator safely ignores the update (no overwrite).

  3. Benson EA Integration:

    • The existing Benson EA (runs on another MT4 chart) will read the settings.json (or Global Variables mirrored from it) and apply the flags automatically — without needing to open the EA input dialog.

  4. Compatibility:

    • Must support both single-terminal (multiple chart windows) and multi-terminal setups (shared folder communication).


Environment

  • Windows VPS / PC running MetaTrader 4

  • Local loopback connection: http://127.0.0.1:5000

  • Shared folder path: C:\BensonBridge\Shared\

  • ChatGPT API key will be provided by client.


Key Requirements

  • Roles for helper EAs: standard , active_open , third_panel .

  • Collector logic waits for all three roles before a single ChatGPT call.

  • Strict JSON schema validation before any update.

  • Atomic writes to settings.json (no partial files).

  • Logging and error handling (Flow failure, missing role, invalid schema).

  • Clean, documented code (Python + MQL4) with clear variable names.

  • Simple, silent operation (headless).

  • One-click setup (Windows Task Scheduler or service mode).


Deliverables

  • Benson_Helper_EA.mq4 (source + compiled .ex4 )

  • Mediator source (Python FastAPI) + requirements.txt + .env.example

  • flow_schema.json (JSON schema)

  • Logs and sample output ( decisions_latest.json )

  • Step-by-step README / setup guide

  • Short demo screencast (2–5 min) showing:

    • Automatic screenshot, mediator collection, Flow call, settings.json written, and Benson reacting.


Timeline & Milestone Table

Phase Description Deliverables Duration Payment
1. Design & Stubs Confirm architecture, create folder structure, dummy endpoints, stub EAs, test screenshot & WebRequest. Folder skeleton + working stub EA + mock API. Day 1–2 20%
2. Screens & Collector Logic Implement scheduled screenshots (01:30 / 13:30), mediator collector for roles, test local JSON logging. Working collector (no API yet). Day 2–3 30%
3. Flow Integration & Validation Connect to ChatGPT (Flow) API, enforce strict JSON schema, write settings.json , add logs & error handling. End-to-end pipeline working. Day 4–5 30%
4. Final Testing & Handoff Integration with Benson EA (flags read), cleanup, docs, and screencast demo. Final code + guide + video. Day 6–7 20%

🕒 Estimated Total Duration: 4–6 working days (one week total).
You may set deadline = 7 days in the MetaQuotes post for buffer.


Acceptance Tests

  1. At 01:30 and 13:30, three screenshots are saved and mediator receives all roles → one ChatGPT call → valid settings.json written.

  2. Missing role → no Flow call; last settings persist (safe default).

  3. Invalid JSON from Flow → no change applied, error logged.

  4. In single-terminal mode: Benson reads Global Variables or settings.json and flips AUTO / TFs correctly.

  5. In multi-terminal mode: all terminals share the same settings.json , and Benson reacts correctly.

  6. Logs record every action (timestamp, slot, success/failure).


Budget

Fixed price — fair market rate.

$200

Responded

1
Developer 1
Rating
(8)
Projects
8
38%
Arbitration
0
Overdue
0
Working
2
Developer 2
Rating
(2)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(14)
Projects
20
15%
Arbitration
4
50% / 25%
Overdue
4
20%
Working
4
Developer 4
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
1
50%
Free
Published: 4 codes
5
Developer 5
Rating
(28)
Projects
31
45%
Arbitration
1
100% / 0%
Overdue
3
10%
Free
6
Developer 6
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
7
Developer 7
Rating
(8)
Projects
9
22%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(12)
Projects
13
8%
Arbitration
1
0% / 100%
Overdue
0
Free
9
Developer 9
Rating
(298)
Projects
477
40%
Arbitration
105
40% / 24%
Overdue
81
17%
Loaded
Published: 2 codes
10
Developer 10
Rating
(27)
Projects
43
7%
Arbitration
18
6% / 78%
Overdue
26
60%
Free
11
Developer 11
Rating
(258)
Projects
264
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(19)
Projects
27
11%
Arbitration
11
9% / 55%
Overdue
12
44%
Free
Similar orders
I need a professional MT5 Expert Advisor (EA) built with clean, modular code. This is an advanced strategy combining liquidity concepts, controlled DCA, hedge protection, and strict risk management. Core Requirements: Entry Logic (ALL must align): Liquidity sweep (Previous Day High/Low breakout and return) EMA50 and EMA200 trend alignment Higher timeframe bias (H1 or H4) RSI confirmation Bollinger Band entry Filters
Greetings I need MT5 developer that has expertise in developing a custom indicator for mt5 boom and crash based on my exact details and requirements which would be discuss later. Kindly bid for this project if it is something you can handle for me
I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc
Hello Developers I have a Project to get done! i have a simple strategy can you please create the automated forex ea to execute my trading strategy? i need custom ea for tradingview and mt4/mt5 correction: i need a tradingview indicator created that tells me when to buy or sell. and ea in mt4/mt5
EA for prop firms 30 - 500 USD
Hi, I am looking to purchase a MT5 EA that can show consistent profitability 5% each month with drawdown less than 9%. I am not ready to build a new one from scratch as i do not have the strategy in mind yet so i do not want to take the risk of building one but not sure if it works. Only apply if you have an existing proven and tested EA that can sell to me together with the source code. The Ea is for prop firm even
Early Killer EA 30+ USD
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
The scanner will scan all currency base on MACD Diverdgent, my strength indicator and my better volume indicator. All this would be across all time frame and all currency pairs
Ninjatrdaer Script 500 - 1000 USD
I am looking to purchase a ninjatrader script, if there is any for sale, i mean a ready made ninjatrdaer script that trade futures, i need the seller to show me a backtest of the system, you know send some results, I would like to see a 1 year and YTD backtest
I will like to purchase tradingview strategy with high winning rate, i mean already made, tested and trusted and powerful strategy, i have tried to code my own strategy with lot of freelancers but nothing to me i am just wasting money, i have wasted lot of money already, so i need a high winning rate tradingview strategy, we can discuss price in chat, I will need to see some test result as well
Pakayaku Robot Trading 30 - 200 USD
Revolusi Trading BTCUSD dengan Presisi Fibonacci & Ichimoku Kumo "Memperkenalkan Pakayaku Robot Trading , asisten cerdas yang dirancang khusus untuk menaklukkan pasar emas (XAUUSD) dan Bitcoin (BTCUSD). Menggabungkan algoritma Fibonacci Retracement untuk akurasi titik pantul dan Ichimoku Kumo sebagai filter tren global. Mengapa Memilih Pakayaku? Analisa Multi-Indikator: Menggabungkan Fibonacci, Ichimoku, dan

Project information

Budget
200+ USD
Deadline
from 1 to 10 day(s)