Post your DuoFX indicator alerts to a Discord channel as colour-coded embeds, with the chart attached, using the free DuoFX Alert Relay for MT5 or MT4. Great for your own alerts channel or a trading group.
Important: the free Alert Relay works with DuoFX products only. It sends alerts from DuoFX indicators and tools that have the "Send to DuoFX Alert Relay" option, not from other indicators or Expert Advisors.
Supported today: DuoFX Divergence Scanner (MT5, MT4) from version 1.3. More DuoFX tools get the option in their next updates; the current list is on duofxlabs.com.
Full reference: the DuoFX Alert Relay user guide. Telegram instead? See How to send MT5 and MT4 alerts to Telegram.
Step 1: create a channel webhook
- 1. In Discord, open the server, then the channel's settings (the gear next to its name).
- 2. Integrations, Webhooks, New Webhook. Give it a name, for example "DuoFX alerts".
- 3. Click Copy Webhook URL. It starts with https://discord.com/api/webhooks/.
Anyone with the webhook URL can post to that channel, so keep it private.
Step 2: allow Discord in MetaTrader
Tools, Options, Expert Advisors: tick "Allow WebRequest for listed URL" and add https://discord.com. Click OK.
Step 3: attach the relay and test
- 1. Open a chart of a quiet symbol and drag DuoFX Alert Relay onto it.
- 2. In the inputs: Send to Discord = true and paste the webhook URL. Leave "Attach a chart screenshot" on to get the chart in each embed.
- 3. Press Send test alert on the panel.
Alerts arrive as embeds: green for buy, red for sell, grey for info, with the symbol, timeframe, indicator name, message, server time and the chart.

If the panel says "URL not allowed", go back to Step 2. If it asks for a webhook URL, the one pasted does not look like a Discord webhook.
Step 4: switch it on in your DuoFX indicators
In each DuoFX indicator that supports it, set "Send to DuoFX Alert Relay" to true. One relay serves every chart, and MT4 and MT5 charts on the same computer can feed the same relay.

Telegram and Discord together
Switch on both outputs and each alert goes to both. Push and email can be added the same way, each with its own switch.
Tips
- The relay respects Discord's rate limits: if Discord asks it to slow down, it waits and then sends.
- Add a label (for example "Account 1") in the inputs if several computers post to the same channel.
- Delete and recreate the webhook if the URL ever leaks.
Alerts are information, not trading advice, and can be delayed or lost. Trading carries a high risk of loss.


