With TradingView Subscriber, you can connect TradingView directly to both MT4 and MT5 on your own trading server. This means your server works as a dedicated webhook, giving you faster, lighter, and more reliable performance compared to typical PineScript connector services that share their connection paths with many users.
In the latest Version 7.00, TradingView Subscriber comes with several new features designed to make the integration easier and more powerful. It now supports running on both x86 (MT4) and x64 (MT5) platforms at the same time, so you can use it flexibly across different setups.
This update also includes new filters, such as high-impact news filters and trading session filters, to give traders better control over when trades are triggered.
Overall, Version 7.00 gives you more flexibility, better performance, and smarter filters, making it easier than ever to connect your TradingView alerts to MT4 and MT5.
What files will you receive when downloading TradingView Subscriber V7.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_V7.00.ex4 for MT4 and TradingView-Subscriber5_V7.00.ex5 for MT5.
How to use TradingView-Subscriber V7.00?
The steps to use TradingView-Subscriber v7.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-V7 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 V7.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 V7.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:
::: TRADE SETTING
- Suffic pairs, example: "pro,micro,mini,m" → This lets you adjust to the symbol suffixes used by your broker if they provide customized pair names.
- Default SL source → Choose the main Stop Loss method:
a. Original SL from TradingView, Use the stop loss price directly from the TradingView alert. You must include the SL value in your alert JSON.
b. Multiplier ATR, Automatically calculate stop loss based on ATR (with Multiplier, Period, and Timeframe settings in the Stop Loss Parameters).
c. Defined SL Points, Set a static stop loss distance (in points) defined under Stop Loss Parameters. - Risk per trade %, opsi: 0.25, 0.5, 1, 2, Required setting. Options: 0.25, 0.5, 1, or 2%. This defines how much of your account you risk on each trade.
- Reward Target Multiplier (R:R), A multiplier used to calculate your take profit target relative to the stop loss.
- Fixed TP Target, Define take profit as a fixed number of points.
TP Priority: the system follows this order of priority: Take Profit from TradingView alert, if TP is set to 0, it uses Fixed TP Target. If Fixed TP Target is 0, it falls back to Reward Target Multiplier (R:R). - 0=disabled, max % drawdown per day, Set a maximum daily loss limit (in %). If reached, the system stops opening new trades. (0 = disabled)
- 0=disabled, stop entries when today's equity gain >= % of start-of-day balance, Set a percentage target of account growth per day. When reached, no new trades will open. (0 = disabled).
- 0=disabled, stop entries when today's equity gain >= this money, Set a specific profit target in account currency. When reached, the system stops trading for that day. (0 = disabled).
- Subscriber ID (0..18), A unique ID that identifies your MetaTrader platform connected to the bridge.
- Magic number, Used to tag and identify orders created by TradingView Subscriber.
- Prefix comment, Custom text added to each order comment for easier tracking.
- Close & Open New Order When Opposite Alert, If an opposite signal comes in (e.g., current BUY is active, but a SELL alert is received), the system will close the BUY and immediately open a SELL.
- Reverse order, Flip the alert action. For example, if the alert says BUY, the system will execute a SELL instead.
:::: HIGH NEWS PROTECTION SETTING
- High News Protection, True/False. If enabled, the system will close profitable trades before high-impact news releases to avoid volatility risk.
- News-based entry block, True/False. If enabled, the system won’t open new trades right before high-impact news.
- Block duration after news detection in minutes, Define how long before and after a news event the system will block new entries.
- <- NEW: Choose Forex / Crypto Calendar, Select which type of economic calendar (Forex or Crypto) to use as a reference.
:::: STOPLOSS PARAMETERS
- Defined SL Distance in Points, Enter a fixed stop loss distance (only used if “Defined SL Points” is selected as Default SL source).
- Multiplier by_ATR, Set the multiplier value for ATR-based stop loss.
- Period ATR, Number of periods used to calculate ATR.
- ATR Timeframe, Timeframe used for ATR calculation (e.g., M15, H1, etc.).
:::: TRAILING SETTING
- Enable trailing stop, Choose one of four modes:
a. Disable, No trailing stop.
b. Fixed distance (points), Trailing stop moves in fixed steps.
c. Multiplier x ATR, Trailing distance is based on ATR calculation.
d. Breakeven + step (default calculation), Moves stop loss to breakeven first, then steps up gradually. - Trailing fixed distance in broker points, Value required if using Fixed Distance mode.
- Fixed Trailing shift / steps points, Additional step setting for Fixed Distance trailing.
- ATR multiplier for trailing, Value required if using ATR-based trailing.
- ATR period for trailing, ATR period used in trailing calculations.
- Timeframe used for ATR-based trailing, Timeframe used for ATR trailing.
- % Target for trigger BE (0..100), Set the percentage of target profit required before moving SL to breakeven (used in Breakeven + Step mode).
:::: TRADING SCHEDULE
- Trading hours filter, True/False. If enabled, trades only occur within your chosen hours.
- Monday Trading Hours s/d Sunday Trading Hours, Set start and end times for each day of the week individually.
:::: ALERT SETTING
- VPSTrading.net email portal, Enter the registered email linked to your VPSTrading.net portal.
- URL Webhook API, Enter your Webhook API URL from VPSTrading.net.
- MMA UID, Enter your user ID number.
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:
// example buySignal
json = '{"symbol":"'+syminfo.ticker+'","action":"BUY","volume":0,"sl":0,"tp":0}'
alert(json, alert.freq_once_per_bar_close)
// example sellSignal
json = '{"symbol":"'+syminfo.ticker+'","action":"SELL","volume":0,"sl":0,"tp":0}'
alert(json, alert.freq_once_per_bar_close)The required variables you must send are symbol, action, volume, sl, and tp.
Some indicators or strategies may only need to send a simple format like this in the message:
On indikator: { “symbol”:”BTCUSD”, “action”:”SELL”, “volume”:0, “sl”:107000.00, “tp”:0 }
On strategy: { “symbol”:”{{ticker}}”, “action”:”{{strategy.order.action}}”, “volume”:0, “sl”:0, “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-V6 for MetaTrader 4/5
Release Notes Version:
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.
V5.00 (September 4, 2025):
- Data strings for symbol and action are now case-insensitive. This means TradingView messages can be sent in either lowercase or uppercase, and TVHttpBridge will automatically normalize them.
- A new parameter has been added: Close & Open New Order When Opposite Alert. True (default): When an opposite alert is received, the system will automatically close the existing order and open a new one in the opposite direction. False: The system will ignore opposite alerts and keep the current order open. For example, if there is an active Buy order and a Sell alert is received, the system will close the Buy order and immediately open a new Sell order to follow the alert.
V6.00 (September 18, 2025):
- Added Option: Defined SL Points. You can now set a fixed stop-loss in points using the Defined SL Distance in Points field under Stoploss Parameters.
- Added Option: Fixed TP Target. You can define a fixed take-profit target. Leave it empty or enter 0 to disable this option.
- New Trailing Settings. Trailing stop functionality is now available with three modes: Fixed Distance (points), ATR × Multiplier, Breakeven + Step. By default, trailing is set to Disabled.
V7.00 (October 06, 2025):
- Trading Hours Filter – You can now set specific trading hours for each day based on your personal preferences. By default, this filter is turned off.
- Max Daily Target – A highly requested feature from funded traders. You can limit daily profit targets in two modes: percentage-based or fixed amount.
- News Protection – The system can automatically block alerts if they occur too close to major high-impact economic news events. By default, News Protection is enabled with a 60-minute interval.