Main clusters and core pages.
Last updated: May 2026 · Platform: AlgoWay · Destination: MetaTrader 5 · Source: TradingView alerts
AlgoWay connects TradingView alerts to MetaTrader 5 by receiving a webhook alert from TradingView, validating the JSON message, and forwarding the trade command to the AlgoWayWS-MT5 Expert Advisor running inside MT5. This gives you a practical TradingView to MT5 automation workflow without manually copying alerts into MetaTrader 5.
Traders usually search for this setup as TradingView to MT5, TradingView webhook MT5, automate TradingView alerts, MT5 webhook trading, or TradingView alert to MetaTrader 5. The technical idea is the same: TradingView remains the signal source, AlgoWay receives the webhook, and MetaTrader 5 executes through an EA.
TradingView can send an alert message to an external webhook URL. MetaTrader 5 does not receive that alert directly, so a bridge is required. In AlgoWay, the bridge is split into two parts: the AlgoWay webhook server and the AlgoWayWS-MT5 EA.
| Part | Role in the TradingView to MT5 workflow |
|---|---|
| TradingView alert | Sends the alert message from a strategy, indicator, price condition or custom Pine Script alert. |
| AlgoWay webhook URL | Receives the webhook request and reads the JSON trading command. |
| AlgoWay routing layer | Validates the command, selects the destination platform, and prepares the MT5 execution instruction. |
| AlgoWayWS-MT5 EA | Keeps a live WebSocket connection from MetaTrader 5 to AlgoWay and receives the command in real time. |
| MetaTrader 5 account | Executes the final market order, close command, pending order, Stop Loss, Take Profit or supported trade action. |
TradingView is excellent for charting, indicators, Pine Script strategies and alerts. MetaTrader 5 is where many forex, CFD, index, commodity and prop-firm accounts are actually executed. The gap is execution: a TradingView alert by itself does not open a trade inside MT5 unless another system receives the alert and sends the instruction to MetaTrader.
AlgoWay fills this gap with a webhook-to-WebSocket workflow. TradingView sends the alert to AlgoWay, AlgoWay validates the message, and the AlgoWayWS-MT5 EA receives the command inside your running MT5 terminal. This is why the MT5 terminal or Windows VPS must stay online while the automation is active.
A basic TradingView-to-MT5 bridge usually focuses only on one path: TradingView alert to MetaTrader. AlgoWay is built as a broader webhook automation layer. The same alert format can be used for MetaTrader 5, TradeLocker, Match-Trader, cTrader, DxTrade, Tradovate, Alpaca, Binance, Bybit, OKX, Gate.io and other supported destinations.
| Feature | Single MT5 bridge | AlgoWay |
|---|---|---|
| TradingView to MT5 execution | Usually supported | Supported through AlgoWayWS-MT5 EA |
| Webhook JSON routing | Often locked to one syntax | Structured JSON with platform routing |
| Multiple destination types | Usually limited to MetaTrader | MT5, prop platforms, crypto exchanges, stocks and futures routes |
| Logs and debugging | Usually EA-side only | Webhook-side processing plus MT5 Experts and Journal logs |
| Signal sources | Usually TradingView only | TradingView alerts, webhook requests, Telegram signals and other supported sources |
The simplest alert opens a buy or sell order. A complete TradingView webhook message can also include position size, Stop Loss, Take Profit, trailing stop settings and supported execution options. The exact fields depend on your AlgoWay MT5 configuration and the current AlgoWayWS-MT5 EA documentation.
{{ticker}}, {{strategy.order.action}} and {{strategy.order.contracts}}.Before installing the EA, make sure you have the required components for a TradingView alert to MetaTrader 5 automation workflow.
The recommended installation method is the automatic installer. It places the EA, include files, and DLL into the correct MetaTrader 5 Data Folder.
Download the installer: AlgoWayWS-MT5-Setup.exe
Sometimes Windows Defender or SmartScreen may flag the file as suspicious. If Windows blocks the download, click Keep or Allow so the file can be downloaded.
If a blue SmartScreen window appears when you launch the installer, click More info, then click Run anyway to allow the installer to start.
Close MT5 before starting the installer. If MetaTrader 5 is open, some files can be locked and the installer may stop.
If you do not intentionally use MT5 portable mode, click No. Portable mode is for advanced users running MT5 from a custom folder.
Continue the installation and click Finish when the setup is complete.
Use manual installation only if you cannot run the automatic installer. Manual install copies the same EA, include files, and WebSocket DLL into the MT5 Data Folder.
Download the manual installation package: EA_payload.zip
MQL5 directoryCopy each file into its exact folder:
AlgoWayWS-MT5.ex5asyncwinhttp.mqh, asyncwebsocket.mqhasyncwinhttpwebsockets.dll
The AlgoWayWS-MT5 setup installs four files into your MetaTrader 5 Data Folder:
MQL5\Experts\AlgoWayWS-MT5.ex5MQL5\Include\asyncwinhttp.mqhMQL5\Include\asyncwebsocket.mqhMQL5\Libraries\asyncwinhttpwebsockets.dllThese files allow MT5 to load the Expert Advisor and maintain the WebSocket connection used by AlgoWay.
Before using the EA, open MT5 → Tools → Options → Expert Advisors.
In the EA Inputs tab, fill Your Algoway Webhook here with your AlgoWay webhook
UUID, then click OK.
After the EA is attached to the chart, confirm that the connection is active before sending real TradingView alerts.
When the EA shows connected status, AlgoWay can deliver TradingView webhook signals to your MetaTrader 5 terminal.
After the MT5 EA is connected, your TradingView alert can send a JSON message to your AlgoWay webhook URL. A basic MT5 market order message can use this structure:
{
"platform_name": "metatrader5",
"ticker": "{{ticker}}",
"order_action": "{{strategy.order.action}}",
"order_contracts": "{{strategy.order.contracts}}"
}
AlgoWay receives the TradingView webhook, processes the JSON, and forwards the execution command to the connected AlgoWayWS-MT5 Expert Advisor.
If your MT5 route is configured to use Stop Loss and Take Profit values from the webhook, include them in the JSON message. Use the field format supported by your current AlgoWay MT5 documentation.
{
"platform_name": "metatrader5",
"ticker": "{{ticker}}",
"order_action": "{{strategy.order.action}}",
"order_contracts": "{{strategy.order.contracts}}",
"stop_loss": "50",
"take_profit": "100"
}
| Value type | Example | When to use it |
|---|---|---|
| TradingView symbol | {{ticker}} |
Use when the alert should pass the chart symbol to AlgoWay. |
| Strategy action | {{strategy.order.action}} |
Use when a TradingView strategy controls buy, sell or close direction. |
| Strategy quantity | {{strategy.order.contracts}} |
Use when the order size comes from Strategy Tester logic. |
| Fixed size | "order_contracts": "0.10" |
Use when every alert should send the same MT5 lot size or quantity value. |
For strategy-based automation, the most common condition is the strategy alert event that sends the JSON message whenever the strategy creates an order. For indicator-based automation, the message may use fixed values or custom Pine Script values generated by your indicator logic.
AlgoWayWS-MT5.ex5 is inside MQL5\Experts.asyncwinhttpwebsockets.dll is inside MQL5\Libraries.platform_name is metatrader5.ticker, order_action and order_contracts are present.
This page focuses on installation, connection setup and the TradingView webhook workflow. For the full AlgoWay MT5 Expert Advisor documentation, including risk settings, trailing stop, mapping, sessions and advanced execution options, use:
TradingView does not execute trades directly inside MetaTrader 5 by default. AlgoWay provides the webhook routing layer, and AlgoWayWS-MT5 provides the MT5-side WebSocket connection for execution.
Yes. MetaTrader 5 must remain running with AlgoWayWS-MT5 attached to a chart so the EA can receive WebSocket messages and execute signals.
A Windows VPS is commonly used because MetaTrader 5 and the AlgoWayWS-MT5 EA must stay online. You can run the setup on a local Windows machine, but a VPS is usually better for continuous automation.
Yes. AlgoWayWS-MT5 uses a WebSocket DLL, so Allow DLL imports must be enabled in MT5.
Yes. The Auto Installer is the recommended method because it places the EA and required files into the correct MT5 folders automatically.
Enter the UUID in the EA Inputs field named Your Algoway Webhook here when attaching AlgoWayWS-MT5
to a MetaTrader 5 chart.
Yes. AlgoWay is designed as a routing layer, so the same TradingView alert logic can be used with different supported destinations, depending on how your webhooks and integrations are configured.