Alerts Guide

This guide is to assist you in setting up your TradingView Alerts.
We recommend all users to use the "automatic input" method in Section 3 due to its scalability.

Please refer to the Syntax Guide and the EA Guide
in conjunction with this Alerts Guide.


Syntax Guide →   EA Guide →


Section Description Remarks
1 Sending a test alert To test TradingView to MetaTrader connection and experiment with the EA settings
2 Static TradingView messages No access to source code or a beginner at Pine Script
3 Dynamic TradingView messages Full access and has some knowledge in Pine Script


Section 1: Sending a Test Alert
If you have questions, please create a ticket or email us – we will respond within 1 working day.
Description Remarks
1

Please ensure that you see your License and Account details are the top left corner of your chart.

If you do not see your License and Account details, please ensure that you are using Windows 10/11, or Windows Server 2016/2019.

PineConnector
2 On the chart with the PineConnector EA, press F7 to access the EA Settings.

For the purpose of this test, ensure your EA settings are as follows:

1) Target Type: TP & SL based on pips
2) Volume Type: Specified Volume
PineConnector
3 Hold “Ctrl+U” to open the symbol list and locate "EURUSD".

Double click all symbols to ensure that they are all lit in yellow.

Input the symbol with reference to the left column.
PineConnector
Symbol to input is EURUSD

PineConnector
Symbol to input is EURUSDm#
4 On any chart and timeframe on TradingView, create an alert with the following parameters:

1) Condition: Value greater than 0

2) Webhook URL:
https://pineconnector.net/webhook/

3) Message: yourlicenseid,buy,EURUSD,sl=100,risk=1
(please change license ID and symbol accordingly)

Click on "Create" and wait for alert to trigger.
5 You should be able to see your alert in the Alerts Log and see the trade open in your MetaTrader.
PineConnector
6

On the bottom right corner of your MetaTrader terminal, Click on "Experts".

Here, you can see more details on how the trade was processsed.

We recommend that you track the Experts Tab to better understand the EA.

Done with Alert Test!

 

Faced an error or trade not triggering?
Browse through potential causes and remedies here:
PineConnector Self-Debugger

PineConnector

 

Section 2: Static TradingView messages
If you have your own strategy/study/indicator, please refer to Section 3.
Description Remarks
1

On the symbol and timeframe you would like to trade, create an alert with the following:

Condition: Choose the script you would like to use

Options: Choose the appropriate option – we recommend Once Per Bar Close to avoid repainting 

Message:

PineConnector
2

Your alerts will now trigger each time conditions are met, with the message you have configured.

 

Faced an error or trade not triggering?
Browse through potential causes and remedies here:
PineConnector Self-Debugger

PineConnector

 

Section 3: Dynamic TradingView messages (Recommended)
If you have questions, please create a ticket or email us – we will respond within 1 working day.
Description Remarks
1

With your Pine Script Strategy/Study/Indicator, add the alert() codes with reference to the Sample Alert Script.


Useful: 

  • Add plotshape() codes to have a visual when alerts fire
  • Craft the appropriate syntax with reference to the Syntax Guide HERE
  • For more information on the alert() function, you may refer to TradingView's alert() Reference Manual
PineConnector

Sample Alert Script

2

When done coding, apply 1 alert to each symbol you would like to trade.

Under "Condition", select the Script you just coded and select "Any alert() function call".


Ensure Webhook URL is: https://pineconnector.net/webhook/

Alert name need not change. Alert message will produce based on what you coded.

PineConnector
3

Your alerts will now trigger each time conditions are met, with your configured messages.

 

Faced an error or trade not triggering?
Browse through potential causes and remedies here:
PineConnector Self-Debugger

PineConnector