Getting Started
This page will help you get started with PineConnector. Follow the steps in order and refer back here if needed. If you have questions or encounter any blockers at any stage, please reach out to PineConnector Support via the blue bubble at the bottom right corner!
1. Verify Compatibility with Your Operating System
PineConnector is compatible with the following Operating Systems:
- Windows: 10 and 11.
- Windows Server: 2016, 2019 and 2022.
- MacOS: Possible but potentially unstable—consider using a Windows VPS.
Tip for MacOS Users: Utilize Microsoft Remote Desktop for better navigation of your VPS. Need help? View the VPS Setup guide.
The following Operating Systems are not compatible:
- Windows 8 or older: Upgrade to Windows 10 or 11.
- Windows Server 2012: Upgrade to Windows Server 2016, 2019, or 2022.
- MetaQuotes VPS: Use an alternative VPS provider, like the PineConnector VPS.
- Press the Windows logo key + R to open the Run dialog box.
- Type
winver
into the Open box. - Click OK or press Enter.
This action will display the "About Windows" box, showing the version and build number of the Windows operating system installed on your computer.
Identify the best location for your broker:
2. Ensure that you have TradingView Essential Plan or Higher
To automate your TradingView strategies, indicators, or scripts, you will require TradingView Essential, Plus, Premium, Expert, Elite, or Ultimate. Being on any of those plans will enable you to send webhook alerts.
3. Setup PineConnector EA on Your MetaTrader Terminal
Once you have ensured that you’re using a compatible Operating System, setup the PineConnector Expert Advisor (EA) on your MetaTrader 4 or MetaTrader 5 terminal, please refer to the respective guides:
4. Send in a Test Alert
After setting up the PineConnector EA on your MT4/5 terminal, send a few test alerts to verify that your connection is properly established and to familiarize yourself with the workflow, ensuring everything operates smoothly before executing live trades.
Test It Out
For your test alert, we recommend sending a simple buy order for EURUSD with 1 lot using the following syntax:
LicenseID,buy,EURUSD,risk=1
For this example, the License ID is 6161199464661. Accordingly, the syntax used will be:
6161199464661,buy,EURUSD,risk=1
If done correctly, you should see a buy position for EURUSD with 1 lot open on your terminal.
5. Familiarize Yourself with the PineConnector Syntax
Syntax is the way you write alert messages to configure and trigger specific actions in your MetaTrader terminal. Understanding and correctly using the PineConnector syntax is essential for effective automation of your trading strategies.
We recommend that you familiarize yourself with the following key syntax commands and components:
- Commands (Market Orders):
- Other Parameters:
Try These Out
The following are examples of syntax you should try:
- With different symbols — explore other FX symbols and non-FX symbols as per your Symbol List.
LicenseID,buy,GBPUSD,risk=1
LicenseID,buy,BTCUSD,risk=1
LicenseID,buy,US100,risk=1
- With a stop loss (SL):
LicenseID,buy,EURUSD,risk=1,sl=30
- With a take profit (TP) — note that other parameters such as
sl=
andtp=
can be arranged in any order.
LicenseID,buy,EURUSD,risk=1,tp=50
LicenseID,buy,EURUSD,risk=1,tp=50,sl=30
LicenseID,buy,EURUSD,risk=1,sl=100,tp=200
- With a different command:
LicenseID,sell,EURUSD,risk=1
6. Familiarize Yourself with Various EA Options
After successfully sending test alerts, familiarize yourself with various EA options to implement your trading strategies with minimal or no coding.
We recommend that you explore the following EA Options as they are the most frequently used:
Experiment with different settings by sending test alerts to see how changes affect trade execution. For instance, change the Target Type from pips to percentage to observe different target placements, or switch from Lots to Percentage of Balance for volume computation based on stop-loss and risk values.
7. Setup a Secret Key
The Signal Authentication feature is a security mechanism designed to ensure the secure transmission of trading signals from TradingView to MetaTrader. By configuring a secret key, you can add an extra layer of security to your trading signals. This ensures that signals are only executed if the secret key in your TradingView message matches the one defined in the PineConnector Portal.
This feature helps prevent unauthorized access and ensures that only signals with verified authentication are executed, enhancing the overall security of your trading operations.
In the following example, we have added PineApple
as the secret key.
With the Signal Authentication feature turned on, you will have to add the secret component in your syntax, which looks like the following:
LicenseID,command,symbol,risk=1,secret=PineApple
From our example above, the new syntax will be:
6161199464661,buy,EURUSD,risk=1,secret=PineApple
Since the Secret Key is case-sensitive, the following will not be accepted:
6161199464661,buy,EURUSD,risk=1,secret=pineapple
6161199464661,buy,EURUSD,risk=1,secret=PINEAPPLE
6161199464661,buy,EURUSD,risk=1,secret=pINEaPPLE
8. Configure TradingView Script and Alerts
Once you understand the EA options and PineConnector Syntax, configure your TradingView indicator/strategy script and create alerts. Ensure the alerts trigger the appropriate trades on your MT4/5 terminal.
- Without access to the script code: No-Code Guide
- With access to the script code: Low-Code Guide
If you need an example of a script being PineConnector-compatible, please refer to the following SuperTrend strategy guide.
9. Monitor and Optimize Your Setup
Monitor your signals and trades to ensure they execute as intended.
- Check Logs Regularly:
- Review the PineConnector Signal Logs and your MetaTrader Experts tab.
- Optimize EA Settings:
- Adjust EA settings based on strategy performance.
- Optimize TradingView Strategy:
- Fine-tune parameters such as risk management, stop-loss, take-profit levels, and trade sizes.
Initially, monitor closely, but as trading actions stabilize, you can reduce the frequency of monitoring.
By following these steps, you will have PineConnector set up and optimized for your trading strategies. Happy trading!
On this page
- Getting Started
- 1. Verify Compatibility with Your Operating System
- 2. Ensure that you have TradingView Essential Plan or Higher
- 3. Setup PineConnector EA on Your MetaTrader Terminal
- 4. Send in a Test Alert
- Test It Out
- 5. Familiarize Yourself with the PineConnector Syntax
- Try These Out
- 6. Familiarize Yourself with Various EA Options
- 7. Setup a Secret Key
- 8. Configure TradingView Script and Alerts
- 9. Monitor and Optimize Your Setup