PineConnector Guide & Review
Table of Contents
How to Automate TradingView Strategies With MetaTrader
Today I’m going to introduce you to a powerful little tool called PineConnector.
Every ambitious trader dreams of having an automated system.
The idea of having a money-printing machine running 24/7, never missing any trades, always pouncing on opportunities, always exploiting its edge over the markets is an alluring one to most traders regardless of how successful they are at manual trading.
Personally, I quite enjoy manually trading, and I believe human discretion can be a major advantage when it comes to attacking the markets.
But discretion can also be a trader’s worst enemy if they don’t have an edge, or they don’t have control over themselves and their emotions.
The most powerful thing about automated trading systems, aside from the fact that it can operate 24/7, is that it eliminates the traps that most losing traders fall into.
Computers are dumb. If you want to tell your computer to do something, you need to be extremely clear and concise with the instructions you give it.
And when it comes to automated trading, this is even more true.
To successfully automate a trading system you need to tell it everything – your entry and exit criteria, your desired market conditions, your stops and targets, your position sizing, and anything else that influences the decisions you make to buy or sell.
Once that information is input into the system – it does what you tell it to do, over and over again, with true consistency, without deviation, without second-guessing, without fear or greed, without any consideration whatsoever except to ask – does this action I’m about to make meet the instructions I’ve been given?
Most traders cannot operate that way at all times. Even the best traders in the world cannot operate that way at all times.
Today’s article is not an attempt to convince you that human emotion in trading is a bad thing. As many great trading psychologists have demonstrated, human emotion is an important guidance system for successful traders.
But machines are powerful allies if they are employed properly. And there’s no reason why a successful discretionary trader can’t include an automated system in their arsenal, and certainly no reason why an unsuccessful trader shouldn’t try it.
Automated systems don’t need to replace your manual discretionary trading, but they can be used to supplement it and enhance your yearly returns.
And today, I’m going to explain to you how you can easily turn your TradingView scripts into automated systems.
What Is PineConnector?
PineConnector is an Expert Advisor plugin script created for the MetaTrader trading and charting platform.
If you’ve read my TradingView review, you know that I’m not a big fan of MetaTrader.
I don’t use it for my manual trading and chart analysis because I find it to be clunky and unintuitive. I have never been more frustrated in my trading than the first time I tried to use MetaTrader.
But despite the fact that using MetaTrader feels to me like using Windows 95 with a joystick, it does have a powerful scripting functionality that makes it extremely effective at automating trade management.
The catch is that MQL, the scripting language MetaTrader uses, is far from intuitive to learn.
Even though MQL is a powerful scripting language, it’s not ideal for beginner traders or traders who aren’t particularly tech-savvy to learn.
I have over 15 years of experience as a programmer, working with languages like Java, C++ and Python, and even I don’t particularly enjoy writing code in MQL.
Which is why I specialize in Pine Script for the TradingView platform.
Pine Script is exceptionally easy to learn, easy to code and runs on the TradingView servers so that you don’t need any fancy hardware or software to get up and running.
If you’ve read my previous article on why I think every trader ought to learn Pine Script, then you already know why Pine Script is such an amazing language.
But again, there’s always a catch.
MQL is a powerful language, but is far more complex, runs in the clunky MetaTrader platform and is difficult to learn to code.
Whereas Pine Script is a simple language, runs in the sleek cloud-based TradingView platform, is easy to learn, but cannot be used to automate trade management or trade execution.
At least, not on its own.
This is where PineConnector comes into play.
The PineConnector Expert Advisor is a script that runs in MetaTrader and “listens” for your TradingView alerts. By putting a link to PineConnector’s webhook URL into your TradingView alerts, you can send commands to MetaTrader to manage your trades.

Don’t worry if you’re new to all this and that last paragraph was pure gibberish to you – it’s nowhere near as complicated or hard as it sounds.
There are plenty of official guides written by Alex (the creator of PineConnector) that go into great detail about how to set it up and troubleshoot any problems you might encounter.
I’ve even written two publicly available and profitable open-source strategy scripts for TradingView which include PineConnector automation inbuilt right into the code so that all you need to do is tell the script how much money to risk per trade, and it will do the rest!
I’ve also created a video series guiding traders on how to install PineConnector and get your first test command going.
I’ll leave links to all of these resources at the end of this article.
But first, let’s address the pros and cons of PineConnector and go through a mini review of the service.
Pros of PineConnector
Here’s a list of what I consider to be the stand-out positive features of PineConnector:
– It’s cheap.
At $14.90 per month, PineConnector is the cheapest TradingView bridge service on the internet (at least that I’ve come across in all of my research).
Anyone who has followed my YouTube channel for any length of time will remember my series on how to automate TradingView scripts using AutoView.
AutoView is a great service for automating your trading using TradingView alerts, and is one of PineConnector’s main competitors – but it’s nearly double the price of PineConnector.
And although it works through dozens of crypto exchanges, for forex markets it only works on the Oanda brokerage which is a problem for forex traders who can’t (or don’t want to) use Oanda as their broker.
Which brings me to the second pro:
– It works through any broker that supports MT4 or MT5
Unlike AutoView which only works through Oanda, the PineConnector EA is a MetaTrader plugin that works on both MetaTrader 4 and MetaTrader 5.
This means that so long as your broker supports either MT4 or MT5, you can use PineConnector to automate your TradingView scripts.
The PineConnector script has two versions: one for MT4 and one for MT5. They both behave identically in terms of how you send commands, which opens up a whole world of different brokers which are compatible with this service.
And last but not least:
– It includes inbuilt position sizing
Unlike AutoView, PineConnector allows you to customize your position sizing based on either lot sizes or a percentage of your account balance.
Most profitable forex traders use some form of risk based on a percentage of their account balance.
PineConnector makes this easy to do – you simply tell it to risk “1” percent of your account (or whatever number you choose), and it will calculate the appropriate position size based on your stop loss distance.
AutoView on the other hand does not include this feature (at least not as of the time I’m writing this).
In my AutoView lesson series I had to write my own Pine code for calculating my position size, which works for the most part and is a reasonable solution, but adds a significant amount of code to your TradingView scripts and requires you to manually update your account balance in your script settings regularly so that it can calculate the appropriate position size as your balance fluctuates.
With PineConnector all you need to do is specify your number.
It’s as simple as adding the text “risk=1” to your alert message.
Cons of PineConnector
When it comes to bridging two languages in the way that PineConnector bridges Pine Script to MQL, there are always going to be limitations and drawbacks.
Here are the main negative features of PineConnector I’ve found to be a hinderance during my time using it:
– It could be tricky to set up if you’re inexperienced
This is only true if you’ve never used MetaTrader before or you’ve never installed or used an Expert Advisor.
Truthfully, it’s not any more difficult to set up than AutoView, but the steps are different, and when it comes to the EA’s inbuilt settings there are more things that can go wrong than when using AutoView.
The good news is that Alex has written an extensive guide on how to install and set up PineConnector – both a MetaTrader 4 Guide and a MetaTrader 5 Guide.
He also has an extensive error guide, so that if something does go wrong when you’re using PineConnector, you can get to the bottom of what’s going on quickly and rectify it.
And if you run into any problems you can’t solve, just shoot the support team at PineConnector a message and someone will get back to you ASAP – usually Alex personally.
– It can’t talk back to your script
This is a problem with all TradingView 3rd party APIs and alert bridges, but it’s important to mention.
Unlike an expert advisor or automated Python script for example, TradingView scripts can only send information – they can’t receive it.
So you’re essentially dealing with one-way communication.
Your TradingView script can tell PineConnector when to enter a trade, when to exit a trade, when to modify a trade – but PineConnector can’t tell TradingView that your trade was stopped out by spread fluctuation, or that your trade wasn’t executed due to inadequate margin or other such feedback.
This isn’t a huge problem, but it’s a limitation that can make certain strategies impossible to automate in this manner. For example, it makes it impossible to tell PineConnector to close a specific position, so if you have multiple trades open on the same market then you can’t manage them individually.
PineConnector works best with simple strategies – which is fine with me, as I’m a huge fan of simplicity and elegance over complexity anyway.
– It lacks some features
The final drawback for PineConnector currently is that it lacks some features in regards to specific trade management techniques.
As of writing this article, PineConnector is still a work-in-progress, and although it is at a stage where it’s possible to automate the most important aspects of your trade execution and management, there are a few things it can’t do yet.
For example, I can’t currently use commands to update my stop loss and move it after it’s been placed, which makes it impossible to make an ATR-based trailing stop, and I can’t change my profit target.
You can trail your stop loss using a pip-based automatic trailing command, but you can’t manage your stop loss through your Pine Code – yet.
These missing features will almost certainly be added in over time as Alex continues to develop the script and service, and he is always open to suggestions and has already added a few features I’ve personally requested.
But it’s important to mention this fact so that you understand the current limitations of PineConnector before getting involved with it.
How to Install & Use PineConnector
I’m not going to write out a full guide to installing and using PineConnector as Alex has already written some fantastic guides for everything you could ever need.
Here is a list of the official PineConnector guides:
- Installation Guide for MT4
- Installation Guide for MT5
- PineConnector EA Settings Guide
- Test Alert Guide
- Alert Syntax Guide
And I’ve also created a full YouTube series dedicated to PineConnector.
In this series I show you how to install PineConnector, how to test your first alert, and then how to code your own profitable trading strategy scripts and include the PineConnector commands in your code.
If you’re already experienced with Pine Script or interested in learning how to create your own scripts, you will find that series particularly helpful.
And if you’re not interested in learning how to code then you’re in luck – because I have published two open-source scripts to the TradingView platform which include inbuilt PineConnector functionality!
All you need to do is input the settings you want such as your risk per trade and whether you want to use limit orders or market orders, and the script does the rest!
Here are my scripts:
I’m also currently in the process of updating my Ultimate Pullback Indicator (a premium script) to include inbuilt PineConnector compatibility.
Alex is also working on his own script library of free open-source scripts that include inbuilt PineConnector functionality.
Summary
I don’t really know what else to say except that I really think you ought to check this thing out.
With a 7 day free trial, you have nothing to lose by experimenting with PineConnector.
I’d suggest starting with one of my strategy scripts (FTB or H&S) which are designed with PineConnector in mind, and have inbuilt automation ready to go – all you need to do is set up MetaTrader and input the correct settings into both the PineConnector Expert Advisor and your script settings.
Keep in mind that automated trading is not the magic solution for everyone. It’s not easy to do, and it’s not fail-proof. Plenty can go wrong when you’re playing with automation.
But for those who are interested and passionate about trading and technology, you will find the quest to automate your strategies an exciting and intellectually stimulating one.
Make sure that you’re aware of all the risks before you embark on this journey, and as always – never risk more than you are willing and can afford to lose.
Full disclosure: any links to PineConnector in this article are affiliate links and if you make a purchase I receive a percentage of the sale (at no extra cost to you), but I never promote a product that I don’t personally use and trust. The only affiliate programs I’m associated with as of writing this article are Amazon, TradingView and PineConnector – and I use them all regularly.
Do I get it clear that I cannot trigger a trade from a Pinescript code against a connected Exchange? Tradingview recently had integrated FTX, so I hoped that I can skip 3Commas DCA bots and execute trades directly on FTX (without triggering the DCA bot which in turn executes the trade).
Thanks
Yes unfortunately as of right now you cannot directly manage trades through Pine, you need to use some sort of 3rd party API to achieve this.
I just started the 7 day trial today. This looks very interesting. I’m currently trying to figure out how to use this. I’ve already downloaded PineConnector but I’m a little confused on how to get the alerts from my indicator to execute on mt5. I can see in the alert window the indicator I want and notice it posted some settings in the message section once I select it. I only want the all buy and sell signals between certain hours and want my own SL/TP and Risk% per trade, but I’m a little unsure on where it needs to… Read more »
Hi fxbam! What you’re trying to do should be possible with Pine Connector but unfortunately I don’t have enough time to help you get it sorted, if you email their support team I’m sure Alex or one of his staff will be able to get you set up in no time as they’re a lot more familiar with the alert syntax than I am :) good luck my friend!