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

MQL4 Integração Forex Python

Termos de Referência

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

Respondido

1
Desenvolvedor 1
Classificação
(8)
Projetos
8
38%
Arbitragem
0
Expirado
0
Trabalhando
2
Desenvolvedor 2
Classificação
(2)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(12)
Projetos
16
13%
Arbitragem
4
50% / 25%
Expirado
4
25%
Trabalhando
4
Desenvolvedor 4
Classificação
(1)
Projetos
2
0%
Arbitragem
1
0% / 100%
Expirado
1
50%
Livre
5
Desenvolvedor 5
Classificação
(28)
Projetos
31
45%
Arbitragem
1
100% / 0%
Expirado
3
10%
Livre
6
Desenvolvedor 6
Classificação
(3)
Projetos
1
100%
Arbitragem
3
0% / 100%
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(8)
Projetos
9
22%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(12)
Projetos
13
8%
Arbitragem
1
0% / 100%
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(295)
Projetos
473
40%
Arbitragem
103
41% / 23%
Expirado
78
16%
Ocupado
Publicou: 2 códigos
10
Desenvolvedor 10
Classificação
(27)
Projetos
43
7%
Arbitragem
18
6% / 78%
Expirado
26
60%
Livre
11
Desenvolvedor 11
Classificação
(252)
Projetos
258
30%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(19)
Projetos
27
11%
Arbitragem
11
9% / 55%
Expirado
12
44%
Livre
Pedidos semelhantes
1️⃣ Support and Resistance Levels Draw only strong support and resistance levels. Detect hidden strong support and resistance levels. Add strength rating stars for each level: ⭐⭐⭐ = Very Strong ⭐⭐ = Medium ⭐ = Weak (may break easily) Indicator must not repaint (No Repaint). 2️⃣ Professional Dashboard Display all timeframes from 1 minute to monthly. For each timeframe: Green color with an upward arrow if the trend is
Mt5 30+ USD
Hi, I've purchased a licensed Expert Advisor (EA), but the seller isn't the original developer. Can we remove the license so I can use it on multiple accounts? Or what do you recommend we do
Hello, I have a breakout EA with reversal logic. I own the full source code for both MT4 and MT5 versions. I need the modifications implemented for both MT4 and MT5 versions. I need several modifications: – Multiple reversals with configurable parameters – Breakeven functionality – Entry only after candle close beyond range + offset – Time-based activation – Alternative offset calculation logic – Automatic close at
PROJECT DESCRIPTION Looking for 1 experienced MQL5 developer to build 2 Expert Advisors for MetaTrader 5, targeting XAUUSD and major currency pairs. Strong preference for a single developer handling both EAs to maximize code reuse, reduce cost, and ensure consistency. EA1 — Grid Martingale Pro · Buy/Sell grid with Fixed or ATR Dynamic distance (ATR read once per fill, stored in grid_step_at_open[]) · Gap
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Do you happen to have a profitable strategy for MNQ? it is urgent if any one can help me with this i will be happy to discuss with you and move forward to pay for it kindly let me know the amount thank fill free to bid
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
Olá amigos possuo um indicador que não tem o código fonte mas tenho a licença para usar esse indicador que está me trazendo bons resultados no meu operacional desejo automatizar as suas entradas através de um robô funciona mais ou menos da seguinte forma o indicador gera um sinal de compra ou venda e também gera um nível de take profit stop loss.O robô deve fazer a leitura dos sinais e definir TP e SL nos mesmos
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

Informações sobre o projeto

Orçamento
200+ USD
Prazo
de 1 para 10 dias