How to Use Prop Firm Webhooks: A Complete MT5 to Discord and Telegram Guide
Learn how to integrate MT5 webhooks to automate trade journaling and monitor drawdown limits in real-time across firms like FTMO and Funding Pips. This guide covers the essential technical setup for DLL imports and secure data routing.
Written and reviewed by Kevin Nerway · Last verified 30 July 2026
Key Topics
- MT5 webhook to discord tutorial
- Automated trade alerts for prop firms
- Connecting metatrader 5 to telegram
- Prop firm trade notification setup
Key Takeaways
- Real-Time Monitoring: Webhooks provide instantaneous trade logging to Discord or Telegram, crucial for managing the tight Max Daily Drawdown limits common in firms like Blue Guardian (4%) and Maven Trading (4%).
- Automation Efficiency: Using an Expert Advisor (EA) to trigger webhooks eliminates manual journaling, allowing traders to focus on Fundamental Analysis and execution.
- Risk Management: Automated alerts can notify you when equity approaches a breach level, such as the 10% total drawdown limit at FTMO or Alpha Capital Group.
- Multi-Platform Support: While MT5 is the standard, modern webhook integrations allow routing data from DXTrade (used by FXIFY) and Match-Trader (used by Funding Pips).
- Security Protocols: Protecting your webhook URL is paramount to prevent unauthorized access to your trading data or Discord server.
Quick Reference: Webhook Capabilities by Prop Firm
| Prop Firm | Primary Platforms | Max Daily Drawdown | Max Total Drawdown | Webhook Compatibility |
|---|---|---|---|---|
| Blue Guardian | MT5 | 4% | 8% | High (via MT5) |
| FTMO | MT4, MT5, cTrader, DXTrade | 5% | 10% | High (via MT5/DXTrade) |
| Funding Pips | MT5, cTrader, Match-Trader | 5% | 10% | High (via MT5/Match-Trader) |
| The5ers | MT5, cTrader | 5% | 10% | High (via MT5) |
| FXIFY | MT4, MT5, DXTrade | 4% | 10% | High (via MT5/DXTrade) |
| Maven Trading | MT5, Match-Trader | 4% | 8% | High (via MT5) |
| Seacrest Markets | MT5 | 5% | 8% | High (via MT5) |
What are Webhooks and Why Prop Traders Need Them
In the context of a Funded Account, a webhook is a "user-defined HTTP callback" that sends data from your trading platform to another application—usually Discord or Telegram—the moment a specific event occurs. For a Prop Firm trader, these events typically include trade entries, exits, or reaching a specific profit target.
Prop traders often manage multiple accounts across different firms. For example, a trader might have a $100,000 account at The5ers and another at Blue Guardian. Manually tracking the equity across different dashboards is inefficient and risky. By using a prop firm webhook integration guide, you can consolidate all trade activity into a single private Discord channel. This is particularly vital when navigating a Scaling Plan, where precise Position Sizing is required to meet growth milestones without violating Risk Management rules.
Furthermore, firms like Funding Pips offer weekly payouts, while FTMO provides a bi-weekly Payout schedule. Real-time logging ensures that you have an external, immutable record of every trade, which is useful for verifying profit splits and resolving potential disputes regarding slippage or execution errors.
Technical Requirements: MT5, DLL Imports, and URL Whitelisting
To connect MetaTrader 5 (MT5) to external web services, you must satisfy three primary technical requirements. Without these, the MT5 terminal will block any outgoing requests for security reasons.
Tools > Options > Expert Advisors and ensure "Allow DLL imports" is checked.andWhen trading with firms like Alpha Capital Group or Seacrest Markets, which both utilize MT5, these settings are identical. However, if you are using DXTrade via FXIFY or Audacity Capital, you may need to use a bridge or a third-party service like TradingView to send the webhook, as DXTrade's native scripting (cScript) differs from MQL5.
Step-by-Step: Creating a Discord Webhook for Trade Tracking
Discord is the preferred tool for many traders due to its organized channel structure and ability to host private "logs."
Step 1: Create a Dedicated Discord Server and Channel
Open Discord and create a new server. Within that server, create a private channel named something like "#trade-logs." Keeping this private is essential for protecting your Prop Firm account credentials and strategy details.
Step 2: Access Integration Settings
Click the "Edit Channel" (cog icon) next to your channel name. Navigate to the "Integrations" tab and select "Webhooks." Click "Create Webhook."
Step 3: Customize and Copy the Webhook URL
Give your webhook a name (e.g., "MT5 Funded Tracker") and select the correct channel. Click "Copy Webhook URL." This URL is the "address" where your MT5 terminal will send its data. Treat this URL like a password.
Step 4: Test the Webhook via Browser or Script
Before coding, you can test the URL using a tool like Postman or a simple Python script to ensure the channel receives the message. Once confirmed, you are ready to integrate the URL into your MT5 code.
How to Connect MT5 to Telegram for Instant Execution Alerts
Telegram is often preferred for mobile alerts because its notification system is more robust for "instant" messages. This is useful for monitoring accounts at FundedNext, which offers a variety of platforms including MT5 and Match-Trader.
/newbot command to create a bot. You will receive an API Token.This setup allows you to receive a message on your phone the moment a trade is closed on your Blue Guardian or The5ers account. If you are using a Martingale Strategy (where permitted) or a Hedging Strategy, these instant alerts are critical for manual intervention if the automated logic fails.
Coding the MQL5 Webhook Function: A Copy-Paste Template
To send data from MT5, you use the WebRequest() function. Below is a simplified logic structure for sending a basic message to Discord.
int SendDiscordMessage(string message) {
string headers = "Content-Type: application/json\r\n";
string url = "
string payload = "{\"content\": \"" + message + "\"}";
char data[], result[];
string result_headers;
StringToCharArray(payload, data, 0, StringLen(payload));
int res = WebRequest("POST", url, headers, 10000, data, result, result_headers);
if(res == -1) {
Print("Error in WebRequest. Error code =", GetLastError());
}
return res;
}
This function can be called within OnTradeTransaction(). For instance, when a trade is filled on your Seacrest Markets account, MT5 identifies the transaction and triggers the SendDiscordMessage function. You can expand the payload to include the symbol, lot size, and current Max Daily Drawdown status.
Routing Trade Data from Match-Trader and DXTrade via Webhooks
As prop firms move away from centralized MT4/MT5 platforms, platforms like Match-Trader (used by Funding Pips and Maven Trading) and DXTrade (used by FTMO and FXIFY) have become prevalent.
- Match-Trader: Often requires an external bridge. Some traders use the platform's native API (if provided by the firm) or utilize a "Copy Trader" service that mirrors Match-Trader executions to a local MT5 terminal, which then handles the webhook.
- DXTrade: This platform is web-based. To get webhooks out of DXTrade, traders often use browser-based automation tools or wait for the firm to provide a native "Journal" export. FTMO provides a comprehensive dashboard, but for real-time Discord alerts, a bridge to MT5 is currently the most stable path.
Comparison of Platform Webhook Accessibility
| Platform | Difficulty | Method | Primary Prop Firm Usage |
|---|---|---|---|
| MetaTrader 5 | Easy | MQL5 WebRequest | Blue Guardian, The5ers, Alpha Capital |
| DXTrade | Hard | API Bridge / Extension | FTMO, FXIFY, Audacity Capital |
| Match-Trader | Medium | API / Mirroring | Funding Pips, Maven Trading, FundedNext |
| cTrader | Medium | C# Automate | The5ers, FTMO, Funding Pips |
Using Webhooks to Monitor Daily Loss Limits Remotely
One of the most valuable uses of webhooks is monitoring the Max Daily Drawdown. For example, FXIFY and Blue Guardian both have a 4% daily drawdown limit.
By coding a loop in your EA that checks AccountInfoDouble(ACCOUNT_EQUITY) against AccountInfoDouble(ACCOUNT_BALANCE), you can calculate your current drawdown every minute. If the drawdown exceeds 3%, you can trigger a "High Priority" webhook to Discord and Telegram.
This serves as an early warning system. Because Prop Firm rules are often based on equity rather than balance, a floating loss could trigger a breach even if no trades are closed. A webhook alert gives you the opportunity to manually close positions before hitting the 5% limit at FTMO or the 10% total limit at Funding Pips.
To calculate this accurately, you may want to use a Drawdown Calculator to calibrate your EA's alert thresholds.
Security Best Practices: Protecting Your Webhook URL
A webhook URL is a "secret" entry point. If a malicious actor gains access to your Discord webhook URL, they can spam your channel or, in some advanced setups, potentially spoof messages that look like they came from your MT5 terminal.
.env file.Protecting these URLs is as important as protecting your Live Account credentials. When trading large capital at firms like Audacity Capital or Alpha Capital Group, operational security is a core component of professional trading.
Troubleshooting Common 404 and 403 Connection Errors
When setting up your MT5 webhook, you will likely encounter these common error codes:
- Error 404 (Not Found): This usually means the URL is typed incorrectly. Double-check the Discord webhook ID and token.
- Error 403 (Forbidden): This often happens if the Discord server is blocking the request or if you haven't whitelisted ` in MT5's "Allow WebRequest" settings.
- Error 400 (Bad Request): This means your JSON payload is malformed. Ensure all quotes are closed and special characters are escaped (e.g., using
\"instead of"inside the string). - Error 5011: This is a specific MQL5 error indicating that the URL is not in the "Allowed" list under Options.
If you are using Seacrest Markets or Maven Trading, ensure their specific server latency isn't causing a timeout. You can increase the timeout parameter in the WebRequest function from 10000 (10 seconds) to 20000 if you are on a slow connection.
Advanced Setup: Sending Equity Curve Screenshots to Private Channels
For high-level performance tracking, you can go beyond text alerts. Using MQL5's ChartScreenShot() function, you can capture an image of your equity curve and send it to Discord.
This involves:
.gif or .png.POST request to upload the file to Discord's files endpoint.This is highly effective for visual learners who want to see their progress toward Profit Split targets. For example, seeing a steady climb toward the 80% split at FTMO or the 90% split at Blue Guardian can provide a psychological boost. You can also compare your curve against Pass Rate Analysis data to see if your current performance is within the standard deviation for successful funded traders.
Frequently Asked Questions
Can I use webhooks to copy trades between different prop firms?
While webhooks can send data, they are not ideal for low-latency Copy Trading. For copying trades between a Funding Pips account and a The5ers account, a dedicated local trade copier is recommended. Webhooks are best used for logging and notifications, not execution.
Do prop firms allow the use of webhooks and EAs for logging?
Most firms, including FTMO and FXIFY, allow EAs for logging and risk management. However, you must ensure the EA does not violate Prohibited Strategies, such as high-frequency trading (HFT) or latency arbitrage. Always check the specific T&C of the firm.
Is there a limit to how many webhooks I can send per day?
Discord and Telegram both have rate limits. Discord generally allows 5 requests per second per webhook. If you are using a Martingale Strategy that opens dozens of small positions rapidly, you might trigger a temporary block (Error 429).
Can I send webhooks from a mobile MT5 app?
No, the mobile version of MT5 does not support EAs or WebRequest functions. The webhook must be sent from the desktop terminal or a VPS-hosted terminal. You can, however, receive the notifications on your mobile Discord or Telegram app.
How do I monitor my drawdown across multiple firms in one channel?
You can include the account number or firm name in the webhook payload. For example: {"content": "Firm: Blue Guardian | Account: 123456 | Drawdown: 2.5%"}. This allows you to filter and search for specific firms within your Discord history.
What is the cost of setting up a webhook system?
The setup is essentially free if you have the coding knowledge. If you use a VPS to keep MT5 online, you might pay $10–$30 per month. Compared to the potential loss of a funded account due to a missed drawdown breach, this is a minor investment. You can use a Challenge Cost Comparison to see how these overheads fit into your overall trading budget.
About Kevin Nerway
Contributor at PropFirmScan, helping traders succeed in prop trading.
Related Guides
How to Select Prop Firms in East Africa: Ethiopia and Regional Guide
Learn how traders in Ethiopia, Kenya, and Tanzania can compare prop firms by drawdown rules, payout access, platforms, KYC requirements, and local payment or foreign-exchange constraints.
Top 5 Prop Firms for Beginners in 2025
Success in prop trading starts with choosing firms that prioritize fair drawdown rules and unlimited evaluation time. This guide identifies the most reliable platforms for novice traders to secure capital in 2025.
How to Request Prop Firm Payouts in Jamaica and the Dominican Republic
Discover how traders in Jamaica and the Dominican Republic can request prop firm payouts, choose payment rails, avoid compliance issues, and track fees and records.
Ready to Start Trading?
Compare prop firms and get cashback on your challenge purchase.
11 min read
2,198 words
0/12 sections