How to Automate Trades from TradingView to MT4/5

A Step-by-Step Guide to TradingView Automation

A lot of traders are curious about automation, maybe you’re a discretionary trader looking to add a few algos to your system, or just want to explore the idea of automating your strategy.

So let’s explore one way of doing it. (Especially if you’re new to automation.)

Now, if you use MT4 or MT5, you can simply run your Expert Advisers from there and automate your trading that way.

But what about if you use Trading View?

What if you want to build and test your strategies on there?

Well, sadly, you can’t actually automate your trades through them, yet.

But there is a workaround.

I warn you though, it’s a bit clunky, but if you are happy and familiar with Trading View and just want to sprinkle a bit of automation into your trading, then this is one way to do it.

AUTOMATE TRADES THROUGH TRADING VIEW

To execute trades automatically from Trading View you are going to need a few things:

  1. A strategy that fires orders (build your own or download one from Trading View).
  2. An MT4 or MT5 account (this is where the trades will be executed).
  3. A tool to connect TradingView to MT4/5 (to bridge the two).
  4. A Virtual Private Server(VPS) (to keep MT4/5 running continuously).

There are a lot of moving parts here. Honestly, I wish TradingView would just sort out automation… but hey, this is what we’ve got..

WIRING IT ALL UP

Here’s how to make it work:

  1. Get a tool that connects TradingView to MT4/5.
    One popular option is Pine Connector, which has been around for a while. Their starter package costs $29.90 per month.
  2. Keep MT4/5 running continuously.
    You’ll need a VPS to do this. A VPS is like having a computer that’s always on, so trades can trigger automatically.
    A good option is Forex VPS, which costs around £15 a month. You can log in from anywhere, load MT4/5, and manage your account.
  3. Set up TradingView alerts.
    The process works through TradingView’s alert system. Here’s a quick breakdown:
  • Configure your strategy in TradingView to fire alerts.
  • When an alert triggers, it sends a webhook signal to Pine Connector, including trade details.
  • Pine Connector then relays the details to MT4/5 through its custom EA (Expert Advisor).
  • MT4/5 receives the signal and executes the trade.

You can adjust parameters like risk rules and safety mechanisms, but that’s essentially how it works.

Would I recommend scalping with this setup? Probably not. But it’s a solid way to start automating some of your ideas.