AutomationMart
Home/Browse/Forex & gold trading signal handler for MT5 using webhooks (telegram/discord)
n8n

Forex & gold trading signal handler for MT5 using webhooks (telegram/discord)

n8nn8n18 modulesv1.0
GmailDiscordTelegram

MT5 Trading Signal Handler Metatrader5 and N8N Integration for Forex and Gold Trading via Webhooks for discord and telegram This n8n template demonstrates a workflow that bridges AI workflows which can be used to communicate directly to a trading platform/broker like metatrader 5 Use cases are many: Try automating TradingView alerts into live MT5 trades, building a custom trading bot that sends trade execution signals to MT5 via webhooks, or creating a centralized signal management syste

At a glance

Forex & gold trading signal handler for MT5 using webhooks (telegram/discord) is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Discord, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Discord, Telegram
Modules
18
Price
Free
Version
v1.0
Forex & gold trading signal handler for MT5 using webhooks (telegram/discord) workflow diagram

About this workflow

MT5 Trading Signal Handler Metatrader5 and N8N Integration for Forex and Gold Trading via Webhooks for discord and telegram This n8n template demonstrates a workflow that bridges AI workflows which can be used to communicate directly to a trading platform/broker like metatrader 5 Use cases are many: Try automating TradingView alerts into live MT5 trades, building a custom trading bot that sends trade execution signals to MT5 via webhooks, or creating a centralized signal management system for multiple trading strategies these features are just the beggining! Good to know Always test on demo accounts first - start with 1-2% risk before considering any live deployment This workflow uses unauthenticated webhook endpoints by default - you must add authentication (API keys, OAuth) before any production use Signals are stored in n8n's in-memory static data - they will be lost if n8n restarts unless you implement persistent storage MT5 WebRequest whitelist required - you must add all webhook URLs to MT5's allowed URLs list (Tools → Options → Expert Advisors) The workflow requires a custom MT5 Expert Advisor (EA) that polls the GET endpoint every 5 seconds to fetch pending signals This is designed for local machine or private VPS deployment only - not suitable for public cloud without significant security hardening No automatic signal expiration - old signals will accumulate without manual cleanup or additional workflow logic Compatible with standard MT5 brokers that support automated trading and WebRequest functionality How it works Signal Reception: The "Receive Signal (POST)" webhook accepts trading signals containing asset, entry price, stop loss, take profit, and risk percentage, then passes them to the "Store Signal" Code node Signal Storage: The Code node creates a unique signal ID with timestamp, stores it in n8n's workflow static data with "pending" status, and returns a success response with the signal ID Queue Polling: The "Get Pending Signals (GET)" webhook is polled every 5 seconds by your MT5 Expert Advisor to check for new signals Signal Retrieval: The "Fetch Pending Signals" Code node filters all stored signals to return only those with "pending" status as a JSON array Market Orders: The "Market Order (POST)" webhook accepts instant-execution orders with direction (BUY/SELL), risk percentage, and stop loss in pips, calculating SL/TP prices automatically Limit Orders: The "Limit Order (POST)" webhook handles pending orders with specific entry prices, converting pip-based SL/TP into actual price levels for both standard and JPY pairs Trade Confirmation: After the MT5 EA executes a trade, it sends the signal ID to the "Confirm Signal Processed (POST)" webhook, which marks the signal as "processed" and removes it from the pending queue Emergency Cleanup: The "Clear all signals (POST)" webhook provides a reset function to remove all signals from the queue, useful for testing or when signals get stuck How to use Import this workflow into your n8n instance and activate it by toggling the switch in the top-right corner Copy all webhook URLs from each Webhook node (click the node to view the production URL) Configure your MT5 Expert Advisor with the correct webhook URLs (SIGNALURL for GET requests, CONFIRMURL for POST confirmations) Add all webhook URLs to MT5's WebRequest whitelist (Tools → Options → Expert Advisors → "Allow WebRequest for listed URL") Restart MT5 after adding URLs to the whitelist to ensure they're loaded properly Test the workflow by sending a test signal using curl or Postman: curl -X POST -H "Content-Type: application/json" -d "{\"asset\": \"EURUSD\", \"risk\": 2, \"entry\": 1.0850, \"sl\": 1.0830, \"tp\": 1.0900}" Verify the signal appears when checking the GET endpoint: curl Attach the MT5 EA to any chart (the symbol doesn't matter - it monitors all symbols) and enable Auto Trading in MT5 Monitor the MT5 Experts log to confirm the EA is polling every 5 seconds and executing trades correctly Requirements n8n instance running locally or on a private VPS (version 1.x recommended) MetaTrader 5 terminal installed with a demo or live account logged in Custom MT5 Expert Advisor compiled and loaded (MQL5 code that polls the webhook and executes trades) Auto Trading enabled in MT5 (Tools → Options → Expert Advisors → "Allow Algorithmic Trading") WebRequest permissions configured in MT5 for all webhook URLs Basic understanding of REST APIs, webhooks, and trading concepts (orders, SL/TP, position sizing) Customising this workflow Add authentication middleware to all webhook endpoints using HTTP Authentication or custom API keys for security Implement persistent storage by replacing static data with a database node (PostgreSQL, MySQL) or external storage service Create an automatic signal cleanup workflow that runs on a schedule to delete processed signals older than 24 hours Add notification nodes (Telegram, Discord, Email) to alert you when trades are executed or errors occur Implement position size validation in the Code nodes to cap maximum lot sizes or risk percentages Create an asset whitelist by adding validation logic to only accept signals for approved trading instruments Add duplicate signal detection to prevent the same signal from being processed multiple times Build a signal analytics dashboard by logging all signals to a database and visualizing execution metrics Try a popular use-case such as connecting this to a TradingView webhook to automate Pine Script strategy alerts directly into MT5 trades! Add tags for certain setups and or magic numbers for easier journaling later on Purchasing this N8N workflow comes with the AI trading assistant workflow too so it is sold together and vice versa as well along with the MQL code for the ExpertAdvisor listener all for the price of 120 usd total Questions? If you have questions or need help with this workflow, feel free to reach out: elijahmamuri@gmail.com elijahfxtrading@gmail.com --- Important Disclaimer: This workflow is provided for educational purposes and demo account testing only. It demonstrates technical concepts for signal routing and automation architecture. Always test thoroughly on demo accounts, implement proper security measures, and understand that automated trading involves substantial risk. No warranties, financial advice, or guarantees are provided. See the full disclaimer in the workflow sticky notes for complete terms.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Serve inspirational quotes on-demand via webhook using ZenQuotes API

This n8n template lets you instantly serve batches of inspirational quotes via a webhook using the free ZenQuotes API. It’s perfect for developers, content creators, community managers, or educators who want to add dynamic, uplifting content to websites, chatbots, or internal tools—without writing custom backend code. --- 🔧 How it works - A Webhook node listens for incoming HTTP requests on your chosen path. - Get Random Quote from ZenQuotes sends an HTTP Request to and retrieves five random quo

Free

Send AI pre-op reminders with Google Calendar, Gmail, Sheets, Slack and GPT-4o

Description This workflow automates end-to-end pre-surgery checklist reminders and confirmation tracking for healthcare operations teams. It ensures patients receive timely preparation instructions, can confirm completion with a single click, and allows staff to monitor confirmation status in real time—without manual coordination. Every day at 9:00 AM, the workflow fetches surgery events from Google Calendar, extracts patient details from event descriptions, and generates a unique confirmat

Free

Send a Gmail email from a completed Todoist task

Every time a Todoist task is completed, Make will automatically send a Gmail email.

Free

🧠 Empower your AI chatbot with long-term memory and dynamic tool routing

Empower Your AI Chatbot with Long-Term Memory and Dynamic Tool Routing This n8n workflow equips your AI agent with long-term memory and a dynamic tools router, enabling it to provide intelligent, context-aware responses while managing tasks across multiple tools. By combining persistent memory and modular task routing, this workflow makes your AI smarter, more efficient, and highly adaptable. --- 👥 Who Is This For? 1. AI Developers & Automation Enthusiasts: Integrate advance

Free

Company knowledge base agent (RAG)

Overview Turn your docs into an AI-powered internal or public-facing assistant. This chatbot workflow uses RAG (Retrieval-Augmented Generation) with Supabase vector search to answer employee or customer questions based on your company documents—automatically updated via Google Drive. Whether it’s deployed in Telegram or embedded on your website, this agent supports voice and text input, transcribes voice messages, pulls relevant context from your internal files, and responds with a helpful,

Free

Get user's information from Okta in Telegram

Every time you message your Telegram bot an email of your Okta user you will get a response with information about him.

Free

Tesla quant trading AI agent using Telegram + GPT-4.1 (main interFace)

Get daily and on-demand Tesla (TSLA) trading signals via Telegram—powered by GPT-4.1 and real-time market data. This is the central AI supervisor that orchestrates seven sub-agents for technical analysis, price pattern recognition, and news sentiment. Reports are delivered in structured Telegram-ready HTML, optimized for traders seeking fast, intelligent decision-making signals. ⚠️ This master agent requires 7 connected sub-workflows to function. One of them, the News & Sentiment Agent, also req

Free

Extract Google My Business leads by service or location with Bright Data

Extract Google My Business Leads by Service & Location with Bright Data to Google Sheets This template requires a self-hosted n8n instance to run. A comprehensive n8n automation that extracts Google My Business listings by service type and geographic location using Bright Data's Google Maps dataset, with intelligent city expansion and automatic duplicate removal. --- 👥 Who is this for? Lead generation professionals Sales teams Marketing agencies Business development representatives Entrepre

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free