In TradingView Subscriber V4.00, several new input features and capabilities have been added to improve the ease of connecting TradingView alerts to both MT4 and MT5. Starting from version 4, TradingView Subscriber now supports multi-platform (both x86 and x64) usage simultaneously. You can now connect TradingView to both MT4 and MT5 on a single trading server. In the previous version, you could only run either multiple MT4 or multiple MT5 on one server.
Version 4 offers greater flexibility for traders running x64 platforms (MT5) and x86 platforms (MT4) to connect with TradingView.
What files will you receive when downloading TradingView Subscriber V4.00?
- TVHttpBridge.exe, the application that connects TradingView to MT5 and MT4 platforms. This application must be running to maintain the connection between TradingView and MetaTrader.
- Dynamic Link Library (DLL), consisting of two files: TVCopyBridge4.dll and TVCopyBridge5.dll, to be placed in the MetaTrader Data Folder (in the MQL4 > Libraries and/or MQL5 > Libraries folders).
- TradingView-Subscriber EA, provided in two versions: TradingView-Subscriber4_V4.00.ex4 for MT4 and TradingView-Subscriber5_V4.00.ex5 for MT5.
How to use TradingView-Subscriber V4.00?
The steps to use TradingView-Subscriber v4.00 are the same for both MT4 and MT5 platforms.
- Download the file using the link below.
- Extract the downloaded .zip file to retrieve all necessary files. You can extract them on your PC/Laptop first.
- You will get a TradingView-Subscriber-V4 folder, move this folder to the trading server by simply copying it via Remote Desktop.
Run TVHttpBridge.exe application
This bridge application will connect your trading server to TradingView, receiving & sending messages from TradingView alerts to the TradingView-Subscriber EA.
- Set up the file tvbridge.cfg located inside the TVHttpBridge folder. Open this file using Notepad and insert your password (any unique string), so the content format becomes secret=your_password.
- Run TVHttpBridge.exe to establish the connection between TradingView and your MetaTrader.
- TVHttpBridge.exe will receive alerts from TradingView that you have set up.
- TVHttpBridge will recognize the symbol pair from the alert, actions such as BUY/SELL, and values if stop loss is included.
- TVHttpBridge will process and forward the alert data to all registered subscriber IDs.
Place DLL & EA into MetaTrader Open Data Folder
- Open MT4 or MT5 as described in step 4 above. Use the Pre-installed Metatrader folder shortcut available on the Desktop to open MT4/MT5.
- After opening MT4/5, go to File > Open Data Folder to open the MetaTrader Data Folder. Then move the MQL4 folder from the TradingView Subscriber V4.00 package into your MT4 Data Folder. If you are using MT5, move the MQL5 folder into your MT5 Data Folder. VPSTrading.net uses a portable MetaTrader system, not installed on Windows System.
==> All MetaTrader 4 Data Folders are located at C:\Program Files>.
==> MetaTrader 5 Data Folders are located at C:\Program Files (x86)>
The Data Folder will be correct if you open MetaTrader from the provided Desktop shortcut (Pre-installed Metatrader). If you open MetaTrader directly from C:\Program Files> or C:\Program Files (x86)> the Data Folder will default to the Windows system. We recommend using the provided shortcut for easier backup. - Once TradingView Subscriber V4.00 files are placed into the MetaTrader Data Folder, refresh or restart MetaTrader to load TradingView-Subscriber EA. This step should be familiar if you regularly use EAs.
- The TradingView-Subscriber EA operates like any EA, processing based on price tick movements to receive TradingView alerts. It is recommended to run the EA on M1 timeframe for actively moving pairs like EURUSD. If you're trading BTCUSD during weekends, run the EA on BTCUSD M1 to ensure price ticks continue processing even on weekends.
- Attach the EA to the pair as described in step 4.
Next, configure the EA settings as follows:
- Suffix pairs: add pair suffixes if your broker uses specific suffixes.
- Default SL source: choose stop loss setting for orders, either from TradingView alert or using ATR Multiplier.
- Risk per trade: set trade risk, maximum 2%.
- Reward target: set target reward or take profit.
- Max drawdown per day: set maximum daily drawdown.
- Subscriber ID: subscriber ID starts from 0-17, expandable to 100 (contact CS). For multiple terminals, IDs must be unique.
- Magic number: set order identification number created by EA.
- Prefix comment: set comment prefix.
- Reverse order: enable reverse trading to generate opposite orders from alerts.
- Enable trailing stop: enable breakeven point and trailing stop.
- Multiplier by_ATR: set multiplier if choosing Default SL ATR Multiplier; inactive if Default SL is not ATR Multiplier.
- Period ATR: set ATR period if choosing Default SL ATR Multiplier; inactive if Default SL is not ATR Multiplier.
- ATR Timeframe: set ATR timeframe if choosing Default SL ATR Multiplier; inactive if Default SL is not ATR Multiplier.
- VPSTrading.net email portal: verify email portal for notifications.
- Url Webhook Api: VPSTrading.net webhook URL for notifications via WA/Telegram/Email.
- MMA UID: client ID identification for VPSTrading.net.
Finally, create TradingView alerts to receive trading signals
- Create Alert in PineScript
Addalert(json,...)
in your script; when creating an alert, select “Any alert() function call” and set the Webhook URL tohttp://<IP-VPS>/webhook/your_password
.To send JSON alerts to the DLL, add the following PineScript code in your indicator or strategy:
// buySignal example
sl_buy = low[1]
json = '{"symbol":"' + syminfo.ticker + '","action":"BUY","volume":0,"sl":' + str.tostring(sl_buy,"#.#####") + ',"tp":0}'
alert(json, alert.freq_once_per_bar)
// sellSignal example
sl_sell = high[1]
json = '{"symbol":"' + syminfo.ticker + '","action":"SELL","volume":0,"sl":' + str.tostring(sl_sell,"#.#####") + ',"tp":0}'
alert(json, alert.freq_once_per_bar)The required variables you must send are symbol, action, volume, sl, and tp.
Some indicators may only need to send a simple format like this in the message:
{ "symbol":"BTCUSD", "action":"SELL", "volume":0, "sl":107000.00, "tp":0 }
- Test & Monitor
Test using a demo account first to ensure all functions work properly before connecting TradingView to your live MetaTrader account.
Download
TradingView-Subscriber-V4 for MetaTrader 4/5
Release Notes Version 4:
V4.00 (June 2, 2025):
- Bridge activation for simultaneous multi-platform MT4 and MT5 usage.
- Addition of Default SL source.
- Addition of Stop Loss Parameters: Multiplier by_ATR, Period ATR & ATR Timeframe.
V4.01 (June 21, 2025):
- Security patch adding secret password freely defined by user for unique TradingView alert identification.
- Addition of close order alert message for MT5 EA via ontradeTransaction. This function is not available for MT4 due to platform limitations.