TradingView Alert Info

A few notes on TradingView alerts for our new and experienced users here. 

If you are new and do not have a TradingView account please feel free to use the referral link below:

You may find it easiest to make new saved chart layouts for each indicator or strategy used. This allows you to keep track of alerts and backtest quickly if running multiple setups.

Click the dropdown near settings:

  1. -create a new layout
  2. -load your indicator or indicators of choice
  3. -rename the chart: “btcusdt alert chart” for example)
  4. -turn autosave off to avoid overwriting the chart (you will have to manually save changes to the chart)
TV Alert Info

Open the Alerts pane by clicking on the alarm clock on the far right. This will allow you to view all current alerts.

  • The alert pane allows you to restart, stop, and remove all alerts.
  • The alert pane can also filter per active alert, current symbol, time interval.
  • Filtering by current symbol can be very helpful to see all alerts for a specific symbol and may prevent double alerts. For example, loading “BTCUSDT Binance chart” and selecting filter alerts by current symbol will only display alerts created on the “BTCUSDT Binance chart”.
TV Alert Manager Info

ALT+A will allow you to create a new alert quickly, which can be helpful for creating your first manual alert.

  • It is very easy to create an alert manually for a “template” alert.
  • Once created, you can use TVAlertsManager to save the “template” alert to your spreadsheet and create others off of it.

Once you click to create a new alert (ALT+A), you will see the Alert pane and all alert options (see picture below).

Create Alert on BTCUSD

Information on Alert Settings:

Condition: allows you to set the condition to trigger the alert. Conditions to trigger alerts are based on either Symbols, Indicators, or both.

Symbols, example BTCUSDT crossing value 30,000.
Indicators, example Indicator, Buy Alert.
Symbol crossing Indicator, example BTCUSDT crossing Indicator, Buy Alert.

NOTES: Conditions dropdown will show all loaded indicators or symbols that alerts can be made on.

Create Alert on BTCUSD
Create Alert on BTCUSD

Options: allows you to set options on when the alert will fire.

  • Only Once: The alert will only trigger once and will not be repeated.
  • Once Per Bar: The alert will trigger every time the condition is met, but not more than 1 time per bar.
  • Once Per Bar Close: The alert will trigger every time the condition is met at bar close.
  • Once Per Minute: The alert will trigger every time the condition is met, but not more than 1 time per minute.


NOTES: Only once for alerts is helpful for simple price cross alerts to notify traders of price reached (example BTCUSDT crossing 40K). Once per bar alerts will trigger once per bar if the alert is fired within the candle. For example, if you are on the 1 minute timeframe, an alert can trigger once per bar, or once per every 1 minute candle. This is NOT a good way to make ENTRY ALERTS as the condition for the alert is NOT CONFIRMED at bar close and will allow repainting on the chart. Once per bar can be useful to trigger EXIT ALERTS where you may want to fire an alert to exit a trade as fast as possible.
For ENTRY ALERTS we have always found it best to utilize “Once Per Bar Close” as that means the alert was confirmed at the candle close. This can lead to less repainting overall.

Expiration time: allows you to set the expiration time of the alert. TradingView Premium users have the option to select “open-ended” and have alerts that never expire. Those on the TradingView Pro and Pro+ plans will have alerts that expire in 2 months time, and after 2 months the alerts will have to be edited and the expiration date extended.

NOTES: For those without TradingView Premium, TVAM Allows automatic expiration of alert expiration times by adding +59 Days to expiration date. Simply load your alerts once every 2 months and TVAM will automatically extend your alert expiration dates.

 

Alert actions: allows you to select which actions the alert will trigger once fired.

  • Notify on app: will display the alert on the TradingView mobile app (android or Iphone). Perfect for trading on mobile phones.
  • Show popup: will display the alert on the TradingView browser if open and logged in, or will display next time the TradingView browser is opened.
  • Send email: will display the alert in an e-mail message. The alert will be sent to the e-mail listed under your account. You can set or view the e-mail listed for your account on the “Profile Settings” page.
  • Webhook URL: allows you to send a POST request to a certain URL every time the alert is triggered. This is very helpful for users who want to use alerts to automate their trading.
  • Play sound: allows you to play a sound on the TradingView Browser each time the alert is fired.
  • Send email-to-SMS: will display the alert as an SMS text message on your mobile device. You can set or view the SMS email for your account on the “Profile Settings” page or view the full list of carriers here.

NOTES: Notify on app can be very helpful for trading on mobile or for trend change alerts. Webhook URL is very commonly used to push alerts to bots to enter deals.

Alert Actions

Alert name: This is the name of the alert.

NOTES: Utilizing strict alert name formatting can be a timesaving and efficient way to manage alerts using TVAM Filtering.
We prefer to name our alerts starting with the Exchange Account Identifier – Pair – Indicator – Side (long or short)
example: Binance01- BTCUSDT – VWAP -Long Alert.
This allows us to filter alerts via exchange, indicator, pair, and side.

Alert Name

Message: This is the alert message that will be displayed when the alert is triggered. If using Webhook URL and POST requests you must make sure that the formatting is correct.

TV Alert Info

Webhook Message Formatting

The Alert Message format is very important if using Webhook URL to an outgoing platform – as if the message or formatting is incorrect your intended action will not work.

It is ALWAYS best to copy and paste message strings directly into the alert!

An example of a correct alert message is shown below with no extra characters, or missing items (exactly as copied):

{"exchange": "binance", "operation": "turnOnShort", "id": "a8b2817a-8223-4b26-aa6e-a00c8b9b6a1d"}

Example of incorrect alert message shown below would be missing brackets on either end:

{"exchange": "binance", "operation": "turnOnShort", "id": "a8b2817a-8223-4b26-aa6e-a00c8b9b6a1d" - missing curly brace "}"

 

missing curly brace "{" - "exchange": "binance", "operation": "turnOnShort", "id": "a8b2817a-8223-4b26-aa6e-a00c8b9b6a1d"}

or an incorrect copy and paste resulting in extra spaces, lines, or missing characters.

{"exchange": "binance", "operation": "turnOnShort", -extra space (incorrect)-
"id": "a8b2817a-8223-4b26-aa6e-a00c8b9b6a1d"

Example of a correctly formatted alert message below:

Alerts can also combine multiple message conditions if users would like to send ONE alert triggering multiple ENTRIES and EXITS.

For this to work the syntax is as follows and square ([]) brackets are added to combine alerts. [{alert1}, {alert2}]
Please note the use of the space in betweent alert1 and alert2.
With this method, alert1 is received first, with alert2 received second.
example: Binance BTCUSDT BUY ALERT closing SHORT POSITION and opening LONG ENTRY.

[{"exchange": "binance", "operation": "closeShort", "symbol": "BTCUSDT" "id": "a8b2817a-8223-4b26-aa6e-a00c8b9b6a1d"}, { "exchange": "binance", "side": "buy", "symbol": "BTCUSDT", "id": "a8b2817a-8223-4b26-aa6e-a00c8b9b6a1d" }]

example: Binance BTCUSDT SELL ALERT closing LONG POSITION and opening SHORT ENTRY.

[{"exchange": "binance", "operation": "closeLong", "symbol": "BTCUSDT" "id": "a8b2817a-8223-4b26-aa6e-a00c8b9b6a1d"}, { "exchange": "binance", "side": "sell", "symbol": "BTCUSDT", "id": "a8b2817a-8223-4b26-aa6e-a00c8b9b6a1d" }]

HAVING ISSUES FIRING ALERTS?

For those having issues with alerts it can be beneficial to:

1) Double check your WEBHOOK ADDRESS is correct.
3commas webook example: https://3commas.io/trade_signal/trading_view

2) Double check your Message String and ensure it is copied correctly utilizing curly brackets and NO Extra characters.
3commas example: { “message_type”: “bot”, “bot_id”: 123456, “email_token”: “XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”, “delay_seconds”: 0, “pair”: “USDT_ADA”}

If all of the above is correct, you can test fire your alert using a price greater than alert (symbol greater than 0 alert).

Create Alert on BTCUSD

The alert should fire, and show up in the ALERTS LOG instantly.

Alert

If the alert does not fire and show up in the log you may have to do the following:

  • Clear your browsing history, cookies and server side cache

  • Try using your Internet browser in incognito mode
  • Try another browser or another device

Now we must head back to our bot platform of choice to see if the bot received the webhook. If all is setup correctly the bot platform will receive and act on the alert (ie open or stop a deal). Examples of errors on the bot platform side can be as such: Signal received error, however bot not enabled. See below for some examples of errors you may see. 3Commas and TVC pictured.

Alet Latest News
If your bot platform of choice receives the webhook you can be certain that your webhook address and message signal are correct.
Further issues and or troubleshooting will have to be done on the bot platform side if issues still occur.

Webhook URL and Message Testing

You can test a webhook here using this service: https://reqbin.com/
Simply input output address, change to “POST”, change content to the required webhook message and Press SEND.

Voila!

Below is an example of a test request sent to 3commas, and verified on 3commas end that the webhook message was received

Require additional help with TradingView Alerts?

If you require additional help with TradingView Alerts please consider sending us a message or booking a coaching session below.