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
(4)
Projects
4
25%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
Projects
1
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(3)
Projects
3
0%
Arbitration
2
0% / 0%
Overdue
1
33%
Loaded
4
Developer 4
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(13)
Projects
16
44%
Arbitration
1
100% / 0%
Overdue
3
19%
Free
6
Developer 6
Rating
(2)
Projects
1
100%
Arbitration
2
0% / 100%
Overdue
0
Free
7
Developer 7
Rating
(8)
Projects
9
22%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(11)
Projects
12
8%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(287)
Projects
462
39%
Arbitration
96
43% / 19%
Overdue
73
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
(240)
Projects
246
31%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hi I have a pinescript indicator I want to make it into ninjatrader and can u run the simulation on it too? like optimize ? if there is anyone that can do it kindly do well to bed to the project so that we can discuss more on this and our you can help thanks
I’m looking for an experienced MQL4/MQL5 developer to perform backtesting of my Expert Advisor (EA) over the past one year . You will receive: The EA file (for both MT4 and MT5 ) Two set files (named A and B ) Five different currency pairs/instruments to test Your task: Run backtests for each pair using both set files (A and B) Use the same 1-year time period for all tests Provide complete backtest reports/results
im looking for a very high end robot that trades using ai and self optimization that learns and adapts to market conditions im looking for a specific developer but they canceled there application if you find this please apply im still interested and anyone else
Ajaj 100 - 1000 USD
Funding Challenge-Passing Trading Robot (FTMO / MFF) + Private Version After Challenge Description: I am looking for a professional MQL5 developer to build a trading robot that can successfully pass funding challenges such as FTMO, MyForexFunds, or similar prop firms. After passing the challenge, I also want a strong, private version of the robot optimized for live trading with consistent profits and low drawdown
i want a bot that uses a sophistaced ai and self optimization that adapts to market conditions that trades completely on its own sets a sl or tp or limit or market orders as needed just trades by itself for mt5 adapts to news and everything trades at right times
Description: I need a professional MT5 Expert Advisor for XAUUSD on the M5 timeframe. The EA should trade only when both SuperTrend(22) and Guard62/Range Filter confirm the same direction. Buy: when SuperTrend is green and price is above Guard62. Sell: when SuperTrend is red and price is below Guard62. Only one direction at a time — if a Buy is open, Sell will trigger only after Buy closes. Filters & Logic: ADX(14) ≥
I need a professional MQL5 developer with strong experience in AI and machine learning to build a fully autonomous trading algorithm. The goal: - Create a self-learning Expert Advisor that trades Forex pairs, Gold (XAUUSD), and Bitcoin (BTCUSD) - Strategy: Scalping on M5 timeframe - The EA must use machine learning or reinforcement learning to adapt to market conditions - Automatically updates its parameters and
Hello, I need a developer to convert an existing free MT5 indicator (not mine) into a simple Expert Advisor (EA) that will automatically open and close trades based on the indicator’s color or signal changes. EA Requirements: Auto-trading logic: When the indicator shows a Buy signal (or color changes to green) → open a Buy trade. When it shows a Sell signal (or color changes to red) → close the Buy and open a
MT5 EA based on the Supertrend system with all the features you mentioned. It will trade with the trend and support hedging on gold and stock pairs. The EA will include trailing stop based on the last highs and lows, breakeven control, adjustable lot size, and a daily profit target. The EA should trade in the direction of the trend, while allowing hedging positions when conditions align. Stop Loss control: SL will be
i want EA base on heiken ashi smoothed.... when ever reflect change in direction by this indicator and made a same 3rd candle in same direction i want to execute trade(size of lot as input), then when trend change at time of change close the trade... Ex. heiken ashi smoothed indicator have personal candle chart it derive direction of trend when ever candle of this indicator is green then be prepare for tread if 3rd

Project information

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

Customer

(8)
Placed orders21
Arbitrage count0