Alerts Guide

This guide is to assist you in setting up your TradingView Alerts.


Description Remarks

PineConnector – Sending Test Alerts Video Guide

Useful tip:
Please use test alerts to learn more about various syntax combinations,
and how the EA features work before coding alerts into your scripts.

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/2022.


If you are looking for a PineConnector-compatible VPS, please consider the PineConnector VPS.

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 and 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.

 

Want to test with with other syntax/messages?
Browse through some sample combined syntax here:
PineConnector Syntax Guide (Section 9: Sample Combined Syntax)

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 workings of the EA.

Superb, done with Alert Test!

Faced an error or trade not triggering?
Browse through potential causes and remedies here:
Error Guide

 

PineConnector

If you have code access to the strategy/indicator, please refer to Dynamic Messages below.

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 Error Guide

PineConnector

Description Remarks
1

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


Useful Tips: 

  • 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
  • Please refer to our Free Scripts Library to see how we convert strategies and indicators to be PineConnector-compatible – PineConnector Free Scripts Library
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 Error Guide

PineConnector