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
9
33%
Arbitragem
1
100% / 0%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(2)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(24)
Projetos
32
38%
Arbitragem
4
50% / 25%
Expirado
5
16%
Trabalhando
4
Desenvolvedor 4
Classificação
(1)
Projetos
2
0%
Arbitragem
1
0% / 100%
Expirado
1
50%
Livre
Publicou: 4 códigos
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
(298)
Projetos
478
40%
Arbitragem
105
40% / 24%
Expirado
82
17%
Carregado
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
(258)
Projetos
269
29%
Arbitragem
2
50% / 0%
Expirado
3
1%
Trabalhando
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
I am looking for an experienced MQL5 developer to develop a custom Expert Advisor (EA) for MetaTrader 5, primarily for XAUUSD (Gold) . The EA will be based on a proprietary price-action trading strategy that I have already defined. The objective is to translate this strategy into a fully automated, precise and reliable trading system without modifying its underlying logic. The strategy involves specific
Need aggressive M1 gold scalper rewrite of Dev3 + 8 strategies. INPUTS: RiskPercent=3, TP=400, SL=300, MaxTrades=6, Mode=BOTH, DailyProfit 15%, DailyLoss -10% LOT = Balance * RiskPercent / 1000 - works for Cent R350 and $1000. 8 STRATEGIES any true = open instantly, check 1 sec: 1 EMA8/21 cross 2 RSI14 30/70 + engulf 3 Engulfing candle 4 BB 20,2 breakout 5 FVG grab M1 6 M5 trend + M1 entry 7 Wick rejection >2 8
I need an experienced MQL5 developer to build a prototype MT5 Expert Advisor called RiskLock. The software should enforce user-defined trading risk rules before trades are executed. It should support risk percentage or fixed monetary risk, calculate position size using account equity, entry price, stop loss, tick value and contract specifications, block or reduce oversized trades, and include daily loss limits
Project Overview I have an existing MT5 Expert Advisor (EA) written in MQL5. The source code ( .mq5 ) will be provided. The underlying strategy is a trend-following system that performs well during trending market conditions, but requires professional quantitative research to improve its ability to identify and avoid highly sideways/range-bound market conditions. The objective of this project is not to build a new EA
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Expert Advisors 300+ USD
double CRiskManager::CalculateLotSize(double slPoints) { double balance = AccountInfoDouble(ACCOUNT_BALANCE); double riskMoney = balance * (m_riskPercent / 100.0); double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE); double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double pointValue = tickValue / tickSize; double lot = riskMoney / (slPoints * pointValue);
i share my strategy i need a bot trending bot fo mt5 . i attached the photo with this it help to make bot. it basicly 1 hours time frame base. i try but failed to make it
Title: Simple background trading bot for my Oanda account (v20 REST API) Overview Hi, I need a simple, lightweight event based standalone trading bot that connects directly to my Oanda account using broker’s standard REST API (V20 account) via VPS The bot just needs to look at group of 5 currency pairs (manually selectable and adjustable) in different 4 baskets, do some basic percentage math every period, and place
MQL5 Developer 30+ USD
📄 وثيقة المواصفات الفنية لروبوت التداول (MQL5 EA Specification) 📌 1. ملخص المشروع والهدف * اسم المشروع: Gold Cent Grid-Hedge EA * المنصة: MetaTrader 5 (MQL5) * أداة التداول: الذهب (XAUUSD) * نوع الحساب: حساب سنت (Cent Account) * فكرة الاستراتيجية: تداول شبكة هيدج متوازنة (Grid-Hedging) تفتح صفقات تعزيز كل مسافة محددة، وتغلق الطرف الأكثر ربحاً عند تحقيق هدف مالّي مجمع بالدولار/السنت لإعادة هيكلة التوازن. ⚙️ 2
Hi developer I want to convert my mt4 EA to mt5 EA . I have a mt4 ea with source code. i want developer to copy same mt4 code and create mt5 EA

Informações sobre o projeto

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