Our plans and pricing are changing on 1st November. Learn more...

Adjusting the symbol and time interval on saved TradingView charts

19 July 2019

TradingView has a feature that lets you view any of your shared charts using a different symbol or time interval to the one used on the saved chart. Alertatron offers a couple of ways you can use this to adjust your charts for each alert that arrives.

The first step is to create a chart, with all the indicators you want to be added to it and share it so Alertatron can capture it. In this article, we'll use the following shared chart, but you can replace this chart address with your own.


At the time this article was written, this chart was set up as a daily chart showing the Dow Jones index with a standard Bollinger Band on it. It looks like this...

Adjusting the chart

To use this chart for a different symbol or interval we need to add some values to the end of the address. The following values are available...

  • symbol - provide the symbol name that the chart should show. For example, to show the BTCUSD chart we'd set symbol=BTCUSD. You can also specify the exchange if the same symbol is available in many like so: symbol=BITFINEX:BTCUSD
  • interval - provide a different timeframe for the chart. Not all intervals are supported, so this can only be one of the following values: 1, 3, 5, 15, 30, 45, 1H, 2H, 3H, 4H, 1D, 1W, 1M. For example, symbol=4H. Note that TradingView is very fussy about this, so symbol=4h (lower case h) will not work.

To add them to your chart address, you need to add a ?, then each value is separated by a &, so an adjusted version of the same chart above that shows the BTCUSD 4 hour chart would need the following adding to the end of the address:
?symbol=BITFINEX:BTCUSD&interval=4H. The result looks like the address below (it might be split into more than 1 line, but it's one long address)...


Using this to get the chart we want

Now we know how to adjust our shared charts to show any symbol or time interval we like, there are 2 ways of requesting a different version of the chart for each alert we receive.

Method 1: Asking for a chart in the alert message

You can add a special command to your alert message to capture a chart. Simply update your alert message to include chart: followed by the address of your chart, like this...

My existing alert message text

You can customise the exact chart address for each of your alerts to ensure it shows the symbol and timeframe that you'd like to see when the alert fires.

Method 2: Define a message format

This is much more complicated to set up than the first method but means that the chart: command does not need to be added to your alert messages. Instead, you can define a dynamic address in your group settings to add a chart to alerts automatically.

This method will only work if all your alerts use a fixed format though. To keep this as simple as possible we recommend formatting your alerts so that they start with the symbol and time interval. For example...

BTCUSD 4H : My alert message here

If every one of your alerts that arrives in your group uses this basic format SYMBOL INTERVAL : Anything here then we can make use of Alertatrons message format feature to extract the symbol and interval from the message text and add it to the chart address for us.

First, edit the group you'd like to update.

Next, in the Message Format field, enter [symbol] [interval]. This will tell Alertatron that the first word in the message will be the symbol, and the second word will be the interval.

Finally, in the Chart snapshot address field, enter the address of your chart, with dummy values for symbol and interval, like this...


When this chart is captured, Alertatron will take the first word of your message and replace {symbol} with it. Likewise, it will replace {interval} with the second word from your alert (and force it to upper case, as TradingView needs intervals to always be upper case).

So, when Alertatron receives the following alert:

BTCUSD 4H : My Alert message here

It will add a chart with the address https://www.tradingview.com/chart/D9VE44RT/?symbol=BTCUSD&interval=4H for you.

Extra Advanced

The message format is quite complex but powerful at the same time. It has a few more features up its sleeve, but you'll only need to read on if you need something more complex than the example above.

The Message Format looks for single words, or sequences of words and puts them into a named value. You can use any name you like. We used 'symbol' and 'interval' in the example above, as it made it clear what we were expecting those values to be.

[value] will match a single word in your message, and call that word 'value'.

{sequence} will match as many words as it can (words and spaces), and name that 'sequence'.

Anything else in the message format will be matched exactly. For example, consider the following alert message...

TD Sequentials signal on BTCUSD 12H triggering a BUY

and the following message format...

{signal} signal on [symbol] [interval] triggering a [side]

Will result in the following values being available for mixing into the chart address...

Property Name Value
signal TD Sequentials
symbol BTCUSD
interval 12H
side BUY

While TradingView only supports 'symbol' and 'interval', other systems, like trading bots might support a wider range of values that you could pass along, and this makes it possible to extract them, as long as you can stick for a strict format for each of your alert messages.

Some images from Unsplash

About Alertatron.com

Your TradingView alerts, with automated trading, with charts, PM'd to you.
Auto-trade on any alert.

Automate Trading

Trigger orders on popular cryptocurrency exchanges and trade 24/7. Access powerful algorithmic orders to maximise your profits.

Capture Charts

See a high quality chart with every alert, captured at the moment the alert was triggered. See exactly what the market was doing and make informed decisions.


Connect your alerts to Telegram (channels, groups and private chats), Discord, Slack, email or send push notifications to other services with webhooks.

Easy To Setup

Nothing to install and no browser extensions. Captures alerts 24/7, even with your computer switched off. Be up and running in seconds.

Related content


Getting started with Alertatron Groups

We're all familiar with email. All your incoming emails arrive in your Inbox, but as we receive so many, most email services offers lots of ways to help you organise them into folders as they arrive. These are called all sorts of things, from folders and groups, to filters, labels, smart folders and many more.

Read more


Include current price and more in your alerts

Using TradingView alerts, it is now possible to add the current price, indicator values and more into your alert messages. Here we explain how...

Read more


Keeping your alerts organized

It's too easy to end up with all your alerts mixed up in a big mess. Here's how we recommend you keep things organised and ensure you see the right alerts in the right places at the right times.

Read more


Making use of groups

Groups provide a powerful way to filter your alerts into different categories. Each group can have its own set of integrations linked to it so each group can forward alerts to different places.

Read more


Troubleshooting guide

Answers to common questions and problems

Read more


Sending alerts to Telegram

Telegram is our most popular integration, so it makes sense to include a step by step guide to help you get started. Each Telegram integration you add can send alerts to a single chat, group or channel, and there are a couple of simple steps to go through to securely link up Alertatron and your chat session.

Read more


Getting alerts from TradingView

It's simple to ensure that every alert you have configured in TradingView comes straight through to Alertatron, ready to be sent on to places like Telegram or Discord. Let's get started...

Read more


How to capture a chart with your TradingView alerts

When you get an alert from a trading signal, via TradingView, it is so useful to be able to glance at a relevant chart immediately. Alertatron can attach a snapshot of your charts to your alerts if you like.

Read more


Getting alerts from web services

Many services can announce interesting events by calling a magic URL called a Webhook. By entering your unique Alertatron webhook address to these services, you can pass those alerts on to any supported integration, like Telegram or Discord.

Read more