Monitor, validate, queue, and execute MT5 trades from webhook signals with real-time confirmation and logging.
This AI agent orchestrates incoming MT5 trading signals from webhooks, stores them as pending actions, and surfaces them for automated execution. It handles market and limit orders, converts SL/TP to price levels, and confirms completion before clearing the queue. It centralizes signal flow with auditable logs and reset options for testing.
Orchestrates signal intake, queuing, and MT5 order execution.
Receive signals via POST webhook and parse the JSON payload.
Validate required fields (asset, entry, sl, tp, risk) before processing.
Store signal with a unique ID and mark as pending in the queue.
Expose pending signals via GET for MT5 EA polling.
Execute market or limit orders in MT5 with calculated SL/TP.
Confirm processing and remove completed signals from the queue.
Before: missed signals, delayed actions, manual errors, hard-to-audit trades, and scattered signal routing. After: reliable signal capture, real-time pending queue visibility, automated execution with confirmation, centralized cleanup, and auditable logs.
A simple 3-step flow that non-technical users can follow.
The webhook receives a POST payload with asset, entry, sl, tp, and risk, validates the data, and forwards it to the storage node.
A unique signal ID is created and the signal is stored in a pending list with a timestamp for traceability.
MT5 EA polls the pending endpoint for new signals, retrieves them, and executes either market or limit orders via MT5 webhooks, then confirms back.
A realistic trading signal flow from reception to execution.
Scenario: At 09:13 UTC, a EURUSD signal with entry 1.0850, SL 1.0830, TP 1.0900, risk 2% arrives. The agent stores the signal and MT5 EA polls every 5 seconds, triggering a market order with calculated SL/TP. The trade executes on MT5; the system logs the signal ID and status, and a Discord notification is sent. If the trade is canceled or fails, the signal remains in a pending state until manually cleared.
Roles that gain reliable automation and traceability.
Needs reliable automation to execute signals without constant monitoring.
Requires timely execution to capture intraday moves.
Wants standardized signal routing across accounts.
Needs a bridge between external signals and MT5 orders.
Demonstrates automated trading workflows to students.
Requires auditable execution logs for compliance.
Core tools that enable end-to-end automation within MT5.
Accepts incoming signal data and passes to storage.
Stores signals, exposes GET/POST endpoints, and maintains queue state.
Receives execution requests and executes market or limit orders with SL/TP.
Sends trade confirmations and error alerts to channels.
Secures endpoints with API keys or OAuth before production use.
Common automation scenarios that maximize MT5 signal reliability.
Practical details about setup, security, and usage.
Yes. This AI agent is designed around MT5, requiring a demo or live MT5 account with an Expert Advisor setup. It relies on MT5 WebRequests to trigger trades and to poll pending signals. The system also assumes you have an n8n instance for signal orchestration and a webhook-enabled EA to receive and execute orders.
No. The workflow is designed for local machines or private VPSs due to security considerations. It uses in-memory storage by default, so you should implement persistent storage and secure access before any production use.
Authentication should be added via middleware (API keys or OAuth). This prevents unauthorized access to the webhook endpoints and ensures only trusted sources can post signals.
Yes. The MT5 EA can monitor all symbols, and the system supports standard MT5 brokers with WebRequest. You can extend the workflow to whitelist multiple endpoints and adapt to different symbol conventions across brokers.
Signals are marked as processed and removed from the pending queue after a successful trade confirmation. There is also an option to manually clear the queue for testing or to run automatic cleanup tasks.
Yes. You can disable the MT5 EA polling, toggle the webhook listener off, or trigger a reset webhook to clear all pending signals for safe testing or outage handling.
Telegram and Discord integrations provide alerts for signaled trades and errors. You can customize channels and message formats to fit your workflow.
Monitor, validate, queue, and execute MT5 trades from webhook signals with real-time confirmation and logging.