How To Set Alerts
Alerts can be created to trigger on any user set condition, like crosses between two indicators, price entering or exiting a channel...etc. Users can be notified when the condition is triggered via phone notifications, emails, SMS, and more through webhooks.

Create An Alert

To create an alert you can:
  • Click on the alert button at the top of your chart.
  • You can also use hotkeys ALT + A (Windows) or βŒ₯ + A (Mac)

Trigger Conditions

Users can select the conditions used to trigger an alert in the condition menu, selecting the indicator and a set of rules used to trigger an alert. The second drop-down menu controls the specific alert trigger conditions, while the other drop-down controls the elements/plots to be used for conditions.
Make sure your condition is set to "TradingLab"
Choose which condition you would like to be alerted for

Options

When setting an alert, you have multiple options to choose from.
  1. 1.
    Only Once - The alert will only trigger once and will not be repeated
  2. 2.
    Once Per Bar - The alert will trigger every time the condition is met, but not more than 1 time per bar.
  3. 3.
    Once Per Bar Close - The alert will trigger every time the condition is met at bar close.
  4. 4.
    Once Per Minute - the alert will trigger every time the condition is met, but not more than 1 time per minute.
Choose whatever type of alert you prefer. We reccomend "once per bar close".

Placeholders

Placeholders allow for the value of a variable to be returned in an alert message. This variable can be the closing price of a symbol ({{close}}), the time frame of the chart the alert is created on ({{interval}}), and even the value of an indicator. This is done using the {{plot("Name")}} placeholder, where "Name" is the name of the plot you want the value to be returned in the alert message. Note that only the first 22 plots in an indicator can be used in placeholders.
Note that plot("Name") must be part of the indicator selected in the alert condition.

Managing Alerts

The alerts manager menu allows you to manage the alerts you have currently set. From there you can create, remove, pause, reactivate, clone, search, sort and edit your alerts. To access the alert manager menu click on the alerts icon represented by an alarm symbol at the top left of the chart.
If you want to remove all your current alerts click on the three horizontal dots at the right of the "add alert" icon, then select "remove all".
For more information on how to manage alerts go here.

Updating Alerts

It is important to note that if one of the indicator settings is changed after the alert is created, then the alert will be triggered using the old settings. In order to update an alert go to the alert manager and click on edit.

Warning Message

When you create an alert using certain indicators such as the TradingLab indicator, you might see a warning message, this is caused by internal Pinescript functions used in the script that may have a repainting behavior when set in a specific way.
The alerts provided by the TradingLab indicators do not repaint and as such, you can click on continue anyway.
Copy link
On this page
Create An Alert
Trigger Conditions
Options
Placeholders
Managing Alerts
Updating Alerts
Warning Message