Do I need a VPS to send TradingView alerts to MT5?
Not necessarily a VPS, but you do need a MetaTrader 5 terminal that is running, with the Pine2Trade EA attached and connected, at every moment an alert can fire. That can be your own Windows PC if it stays on and awake, or a Windows VPS. Pine2Trade does not host MetaTrader 5 for you, and an alert that arrives while your terminal is off is not executed later.
What must be running, and where
| Part | Runs where | Must be on when the alert fires? |
|---|---|---|
| Your TradingView alert | TradingView's servers | The alert must be active; your browser or the TradingView app can be closed |
| Pine2Trade webhook and servers | Our servers | Yes, and they are run by us |
| MetaTrader 5 with the Pine2Trade EA | Your Windows PC or your Windows VPS | Yes: this is the part you are responsible for |
| Pine2Trade Helper (only for breakeven and trailing stops) | The same MetaTrader 5 terminal, on its own chart | Yes, while those positions are open |
The EA opens its own connection from your terminal to our servers and keeps it open. You do not need a fixed IP address or open ports, and you do not need to add our address to MetaTrader's WebRequest list. You do need to tick Allow DLL imports and Allow Algo Trading when you attach the EA (Getting Started).
Your own PC or a VPS?
- Your own PC works if it is a Windows PC that stays on, does not go to sleep, keeps MetaTrader 5 open and keeps its internet connection while your strategy can trade. A laptop that sleeps when you close the lid will miss alerts.
- A Windows VPS is the usual choice for strategies that trade at any hour. Pine2Trade does not sell or include one; any Windows VPS that runs MetaTrader 5 will do.
Our instructions cover MetaTrader 5 on Windows: the EA uses the Windows network libraries to stay connected.
What happens when the terminal is off
When an alert arrives and no EA is connected for that license, the alert is recorded with the status Not delivered and nothing is executed, not then and not when the terminal comes back. The signal is not kept in a queue. If you linked Telegram, the bot tells you at once, even in the errors-only mode.
If the connection drops while the terminal is running, EA version 1.39 reconnects by itself (after 2, 5, 10 and 30 seconds, then every minute). Alerts that arrive while it is reconnecting are also Not delivered.
What our servers keep and show
- Every alert that reached one of your licenses is in the signal history, with the time it reached us, the command, its status and, for executed orders, the ticket and price.
- For Not delivered signals, the row offers Retry now: it sends the same command again, which trades at the current price, not the price when the alert fired.
- My Licenses shows whether your EA is connected right now, since when, its version, broker and account, and lets you send a test signal through the whole path without trading.
Changing PC or VPS
A license is tied to one MetaTrader 5 account and one installation. To move to a new VPS, remove the EA from the old terminal, click Disconnect on the license in My Licenses, and attach the EA on the new terminal with the same license (Moving a license).
Some other bridges run an MT5 terminal for you in their cloud; see TradingView to MT5 bridges compared.
FAQ
Do I need to keep TradingView open?
No. TradingView sends the alert from its own servers, and our servers pass it on.
Can I use my own PC instead of a VPS?
Yes, if it is a Windows PC that stays on and awake, with MetaTrader 5 open and the EA attached, whenever your strategy can send an alert.
Does Pine2Trade host MetaTrader 5 for me?
No. The Pine2Trade EA runs in your own MetaTrader 5 terminal, on your PC or on a VPS you rent.
How do I move the EA to a new VPS?
Remove the EA from the old terminal, click Disconnect on the license in My Licenses, then attach the EA on the new terminal with the same license. See Moving a license.
Try it on a demo account
Every new Pine2Trade account gets a 30-day trial license, no card needed. After that: 30 Days: 19.99 USD for 30 days; LIFETIME: 299.00 USD, one payment (pricing).