TradingView Dynamic Alerts (paving the way for automated trading)

Request Your Trial

(⬇️ Please click on the banner below ⬇️)


TradingView official documentation is very well documented for dynamic alerts.

All our TradingView indicators are compatible with dynamic alerts/webhooks and automated systems.

The Trade Manager included in our Algorithm Builders provides real-time entries/stop-loss/take-profits/trailing/hard exits/... usable in systems capturing alerts such as ProfitView, 3commas, etc.)

List of automated trading systems

Commodities, Forex, Futures, Indices, Options, Stocks Crypto
TradingConnector (monthly)
TradeRelay (monthly)
3commas (monthly)
Alertatron (monthly)
Autoview (monthly)
CryptoHopper (monthly)
Gunbot w/TV addon (lifetime)
HaasOnline (monthly)
ProfitView (lifetime or monthly)
Jubot (monthly)
TradeRelay (monthly)

Adding price values in alerts

Let's start with an example alert message text

The current price of {{ticker}} is {{close}}!

When an alert with this message text is sent to you, {{ticker}} will be replaced with the ticker symbol that the alert was set up on. {{close}} will be replaced with the close price on the current candle. So the message your receive might look more like this

The current price of XBTUSD is 10000!

Here is a list of all the standard values that you can now drop into your alert messages

Placeholder Replaced with
{{open}} The opening price of the current candle.
{{high}} The high price of the current candle.
{{low}} The low price of the current candle.
{{close}} The closing price of the current candle. i.e., the current price
{{volume}} The volume on the current candle.
{{time}} The current bar time (in ISO8601 format, eg: 2019-10-01T15:52:00Z)
{{timenow}} The exact time the alert was sent from TradingView (in ISO8601 format, eg: 2019-10-01T15:52:00Z)
{{ticker}} The current ticker (eg XBTUSD).
{{exchange}} The exchange the ticker is from (eg BINANCE).
{{interval}} The chart timeframe (eg 1 for 1-minute, 15 for 15-minutes, D for Daily)

Very important notes

⚠️ For alerts with price info only like the ones above and the Trade manager data (SL/TPs), you won't need to recreate the alerts for each indicator configuration or code update.
(we know we're adding stuff often but that's only incremental in value in term of signals and features ^^).

⚠️ The Algo builder/Trade Manager alerts referring to boolean conditions (TP hit, SL hit, hard exit, buy, sell, ...) will have to be updated for every indicator setting/code update (sorry guys...)

🔥 This sucks... but TradingView is aware of this inefficiency and is working on it (no ETA yet)

Source: TradingView upcoming alerts improvements

How to use with the Algorithm Builders/Trade Manager indicators?

Now, what everyone is waiting for...

For the Algo Builders/Trade Manager, you have to use the exact names from the table below as that's how we called them in our indicators.
Let's review the indicator names to be used in dynamic alerts.

The Trade manager alerts track a Stop Loss price, a trailing-stop, an hard-exit/invalidation price, an entry price and 3 Take Profits levels for you.
Ideally you may send out the SL and TPs with the alerts, so you can either auto-trade using those values, or use them in manual trading.

Trade Manager Plot Name Replaced with
{{plot("Leading Trend")}} The leading trend color value
1 for Green-Bullish
-1 for Red-Bearish
{{plot("sl_entry_price")}} The Stop Loss price at the entry
{{plot("sl_price")}} The Stop Loss current price
{{plot("tp1_price")}} The Take Profit 1 price
{{plot("tp2_price")}} The Take Profit 2 price
{{plot("tp3_price")}} The Take Profit 3 price

Trade Manager Plots

For example, if you type {{plot("Leading Trend")}} in the alert message, when your event triggers, it displays in the alert popup/email 1 if bullish or -1 if bearish.

TradingView Dynamic Alert Message Example

A few examples...

We won't go in to too many details because the syntax vary for each third-party using TradingView alerts.
In the examples below, we refer to a lookalike ProfitView syntax.
The concept stays similar for other third-parties.


1. The look-a-like (because they're only examples) commands below have to be written from the custom alerts message field (see screenshot below).

2. For our trading model, we need 1 BUY + 1 SELL + 1 HARD EXIT = 3 alerts at least. (plus the trade manager alerts SL/TP if they require other extra alerts)

3. You may not need to create the alerts for each timeframe-exchange-instrument.
We listed above dynamic variables capturing the current chart exchange-timeframe-instrument name.

Market Long/Short with a 2% quantity

The entries events are already created (more info in the section below)

c=position b=short t=market qty=2%

Limit Long/Short

⚠️ Useful if we want a pullback before getting in a trade

c=position b=long t=limit price={{plot("EntryPrice")}}

Stop Loss

c=position b=short t=market stop ={{plot("SL")}}

Take Profit 1&2 and Stop Loss

c=position b=short t=market stop ={{plot("SL")}} takeprofit1={{plot("TP1")}} takeprofit2={{plot("TP2")}}

🔔 Alerts 🔔

When the settings change, the alerts already created aren't updated automatically.

If you change any settings, you'll have to delete the alert(s) related to that setting and recreate it/them.
For example, let's assume you would change the stop-loss of your trade manager but already created an alert for it days ago.
As the previous alert is based on your previous configuration, you'll have to recreate it.

Please let us know if that doesn't make sense to you.

Tradingview Alerts Settings

The screenshot should be self-explanatory enough

You mandatory need to create 1 Once per Close alert for the BUY event and 1 Once per close alert for the SELL event

The Algorithm Builders allow to capture the alerts on those BUY green triangles and SELL red triangles.

You'll have to create 1 alert per event (buy or sell) per asset (BTC, DOW, APPL, ...) per timeframe (m5, m15, ...).

For instance, if you add your Algorithm Builder to your chart. You have to create 2 alerts. A first one to capture the MAIN BUY event, a second one to capture the MAIN SELL event.

According to your TradingView subscription type, you might receive the alerts by email and by SMS

More information to create and manage custom alerts here

Hard Exits alerts

Alerts Hard Exit

Hard Exits BUY, and SELL alerts must be with the Once per bar close option.
The framework is made to invalidate when the hard exits sub-indicators give the signal, at the end/close of the m1 candle.

Trade Manager alerts
Trade Manager alerts

You'll be able to create alerts based on our Trade Manager. It's recommended to wait to be in a trade, and after creating the Trade Manager alerts.

As we could recommend to trigger the BUY/SELL alerts on candle close (for more security/less risk for fakeouts), it's generally a best practice to set the Trade Manager alerts using the Only Once or Once per bar because traders want to exit their trades at a specific price in real-time.

We mean, once the SL/TP1/TP2 are hit, you might not want to wait for the candle close to act, because it could be too late, and very often won't be in the trader favor.

Values used for custom indicators?

Yes, that's possible too.

🔸 Note: Only the first 20 plots are available in placeholders (0-19) using either numbered system (like below) or named system (as shown above).

Let's say you have a custom indicator that gives you signals to open and close positions, and tracks other custom events.

Below are the placeholders for plotted values in your custom indicators

Placeholder Replaced with
{{plot_0}} The value of the first plot in your indicator.
{{plot_1}} The value of the second plot in your indicator.
... and so on...

Request Your Trial

(⬇️ Please click on the banner below ⬇️)

Request your trial for 10 euros only