How To Set TradingView Alerts
Server-side alerts are alerts that are monitored by TradingView’s servers, meaning you do not need to leave your computer running with the charting platform open in order for them to trigger.
In one of my PineScript Lessons I explain how to add alert functionality to your custom scripts. That post is intended for people interested in Pine Script coding.
In this post I will sum up exactly how to create all types of script alerts on the TradingView platform including price alerts, drawing tool alerts and indicator alerts.
TradingView Alert Types
TradingView has several different types of alert actions, all of which can be enabled or disabled as you wish (depending on your membership plan).
Notify on App only works if you first download the (free) TradingView app (Android or iOS). If you have the app installed and a trading alert is triggered then you will receive a push-notification straight to your mobile device.
Show Popup will display a window popup inside your TradingView chart window when an alert is triggered. The popup will display on every chart you have open.
Send Email sends you an email whenever an alert is triggered. You can specify the message that is sent so that you know which indicator triggered the email alert.
Play Sound plays an audio alert whenever a signal is triggered. You can select from 8 different sounds and you can choose how long the sound plays for. This is a fantastic tool for day-traders and I use it every day.
Send Email-to-SMS will send you a text message to your phone. In order to use this feature you must have a phone data carrier that allows email-to-SMS functionality (eg. MobileNumber@online.telstra.com.au).
How To Set TradingView Alerts
You can set alerts like so:
You can set alerts a multitude of ways. The easiest way is to just click on the Alert menu and then click the Plus button. Then you can choose what to set an alert for and the conditions that trigger it.
The alert options are fairly straight-forward to understand, but I’ll break them down below.
Alert Options & Conditions
This section sets the conditions which must be met in order for the alert to trigger. You can click on the first box to select the script that you want to generate your trading signal.
In the second box you can choose which variable you want to monitor.
The third box below the first two is used to set the condition that the second box’s variable must meet in order to trigger the alert.
These four buttons let you choose when the alert is triggered on a candle-basis.
If you set it to Only Once then the alert will trigger a single time and it will trigger during the current candle without waiting for it to close.
If you set it to Once Per Bar then it will trigger once per bar but will repeat on any new bars.
If you set it to Once Per Bar Close it will only trigger when the candle closes. This is the most common setting that you will use for trading signals.
Once Per Minute will trigger the alert on any current candle multiple times, but only once per every minute.
This section lets you set the expiration time of the alert.
How long you can have the alert active depends on your membership plan. On a free account you are limited to only 1 alert per account and the maximum alert time is 2 months.
On a Pro account you can set multiple alerts and on the premium account you can use the Open-ended setting which will leave the alert active forever until you manually disable it.
You can set any date within your maximum time period and any time of day. Expiry times are useful for tracking day-trading setups with a limited time window, but most of the time you will want to set the alert for the maximum time possible.
Setting Alerts on Indicators
A second way to set alerts for certain indicators is to simply click on this little Plus sign when your mouse is hovering over the indicator box.
For example here is how you can set a simple alert for when the RSI goes oversold at 30:
This will only work on certain indicators but it is a common option.
Setting Price Alerts
The other way to add alerts is to click on the same Plus sign on the actual chart itself. This will create a horizontal alert.
If you click the Add Alert button then it will create a basic price alert. If a candle crosses that specific price in either direction you will be alerted.
You can change this in the settings menu.
Adjusting Alert Settings
Once you have set an alert you can change its settings at any time from the alerts menu.
Simply open up the menu and click on the cog icon:
Then the settings menu will appear. From inside this menu you can adjust the conditions and settings of the alert.
If you click on the box beneath the indicator you have set an alert for you can choose which alert condition will trigger the alert.
Crossing Down will only trigger if price or the indicator value moves past the specified value in the downwards direction, whereas Crossing Up does the opposite.
There are several other options that are all fairly self-explanatory, but most of those options are designed to be used on Drawing Tools.
Creating Alerts on Drawing Tools
This feature is particularly useful for pattern traders.
You can set alerts based on your technical analysis drawings. This is great for flag, wedge, trend-line and channel breakout signals. You can set alerts on any type of drawing tool you wish.
For example here is how you would set an alert that triggers when the candle closes beyond a trendline (signalling a breakout setup):
How To Add Alert Functionality To Existing Scripts
This is for people with prior coding experience or people who have gone through the basics section of my PineScript Lessons.
If you come across an existing indicator script that you like but it doesn’t have an option to set alerts for a variable you want it to, you can add alerts easily with this line of code:
alertcondition(true/false variable, title="Alert!", message="Alert triggered")