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
(12)
Projects
16
13%
Arbitration
4
50% / 25%
Overdue
4
25%
Working
4
Developer 4
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
1
50%
Free
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
(295)
Projects
473
40%
Arbitration
103
41% / 23%
Overdue
78
16%
Busy
Published: 2 codes
10
Developer 10
Rating
(27)
Projects
43
7%
Arbitration
18
6% / 78%
Overdue
26
60%
Free
11
Developer 11
Rating
(252)
Projects
258
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
simple automated trading system with adaptive risk management and trend-based execution. The EA manages trades with dynamic position handling and built-in stability filters. Designed for single-position trading and disciplined execution 30 usd budget
Subject: Development of Ultra-High Precision Confluence Indicator - M1 Binary Options (Non-Repaint) ​ Hello, I am looking for a Senior MQL5 Developer to create a custom "Surgical Precision" indicator for MetaTrader 5, specifically optimized for 1-minute (M1) Binary Options trading. The system must integrate three distinct layers of algorithmic analysis. ​ 1. Core Logic: Triple-Layer Confluence ​The signal (Call/Put)
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
Freeallfree 400 - 800 USD
Professional MT5 EA – XAUUSD I need a professional Expert Advisor for MT5 (MQL5) to trade XAUUSD only. This is not a random scalping bot. The EA must trade only high-probability liquidity breakouts during active sessions and avoid ranging or low-volatility markets. Symbol: XAUUSD Timeframe: M15 (optional H1 confirmation) Session filter (Dubai GMT+4): Trade only London and New York sessions Adjustable session times No
Hi, I need a simple MT5 EA. Based on my simple trading strategy I'm going to discuss with you If you have experience in this kindly bid for this project Thanks
Automated trading system 150 - 250 USD
Anyone I need my own bot with my own licenses keys I will pay up please the bot must make good profit and I will pay up good money just hope it helps me
Hello, I want a grid trading bot for the Gate.io crypto exchange. I currently have a working grid bot written in MQL5, and I want a similar bot implemented in Python. The MQL5 bot can be translated, but the codebase is large and it was not designed to be easily ported to Python. Therefore, I prefer that the final Python bot preserves the same core grid logic, but is implemented cleanly in Python rather than doing a
Phahla fx boto 30+ USD
99.99% signal accuracy 10-15 trades distribution all currency trade and meta AI assistance on loss[advice] stop and start robot cyber security firewall protection activation code: 20060605TLP20 Please create a trading bot with any logo with the name elevation
Refine signal trigger execution . Optimize live chart performance . Ensure stable and clean code structure : Stable and clean code is important . Otherwise its a mess . Apply with as much accurate structure you foresee
Here is what I’m looking for: • Signal source: On-chain wallet address monitoring. I want to copy trade high win-rate meme coin wallets (smart money / profitable traders), not Telegram signals. • Market: Crypto (primarily meme coins). • Execution speed: Very important — I want as close to sub-second execution as possible. Low latency is a top priority. • Infrastructure: I’m open to self-hosted VPS or cloud setup if

Project information

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