fbpx
Tickerly Trading bot service logo

BLOG

Multi Symbol TradingView Strategy: Avoid Repainting, Automate Alerts

by

Yes, TradingView supports multi-symbol strategies, built primarily with request.security() and related request functions, plus alerts and webhooks for automation. The main constraints to plan around are the limit on unique request calls, alert frequency and spam protections, and the fact that strategy alerts run as independent server-side copies. This guide walks through the implementation patterns, alert setup, performance fixes, and the path to turning alerts into live execution.


TL;DR:

  • For screeners, use indicators rather than strategy scripts; reserve strategies for backtesting one instrument whose trades depend on data from other symbols.
  • For nonrepainting data, calculate the expression inside the requested context, offset it one bar, and pair it with lookahead_on; dynamic symbols must resolve during historical execution.
  • Alerts follow the chart timeframe; multi-condition alerts allow five conditions for one symbol, while more than 15 triggers within three minutes automatically deactivate an alert.
  • Because strategy alerts run as independent server copies, changing a chart input has no effect; delete and recreate the alert to apply it.
  • Send JSON payloads without exchange credentials, enable two factor authentication, test against a staging endpoint, and paper trade before risking live capital.

Tickerly
Automate TradingView Strategy Alerts
Tickerly turns TradingView strategies into trading bots, helping automate execution across crypto, forex, and stock exchanges.

Explore Tickerly

Table of Contents

What a Multi-Symbol Strategy Actually Does

A multi-symbol strategy pull data from more than one ticker, timeframe, or context into a single script so you can compare trends, rank assets, or watch several price targets at once. Traders typically build these to spot the strongest asset in a basket, confirm a trade on one symbol using a filter from another (an index, a correlated pair, a volatility proxy), or monitor a watchlist for price or indicator crossings.

The Pine Script toolkit involved includes:

  • request.security() and request.security_lower_tf() for pulling external symbol or timeframe data
  • alert() and alertcondition() for triggering notifications
  • Tables and plots for displaying a screener-style panel on the chart
  • Webhook endpoints for pushing alert payloads to an external system

Most multi-symbol logic is written as an indicator rather than a strategy() script, since indicators can display comparison tables and fire flexible alerts without the overhead of simulated order management. Strategies make sense when you need backtested performance metrics on a single instrument that reacts to external data, not when the goal is a screener panel.

Pulling Cross-Symbol and Cross-Timeframe Data

request.security() is the workhorse here. It fetches price, volume, or indicator values from a symbol or timeframe other than the one the script runs on, and it accepts an expression, so you can request ta.atr() or ta.rsi() computed in another context rather than just raw price. According to TradingView’s documentation on other timeframes and data, this function is the primary tool for cross-symbol analysis, and it is built to be efficient when used correctly.

A few patterns matter for getting this right:

  • request.security() returns one value per chart bar, matched to the higher or equal timeframe you request, while request.security_lower_tf() returns an array of intrabar values, which suits detailed intrabar analysis rather than simple cross-symbol comparison.
  • To avoid repainting, calculate your expression inside the requested context and offset it by one bar (expression[1]), pairing this with barmerge.lookahead_on when you need historical alignment without future leakage.
  • Consolidate calls where you can. A loop that reuses a single request pattern, or passing series arguments into one call instead of writing near-duplicate calls for each symbol, keeps your unique call count down.
  • Dynamic requests where the ticker or timeframe is series-based must resolve during historical execution, since real-time bars cannot initiate new data requests, and a script that skips this on history will fail once it reaches live bars.

Getting this pattern right the first time saves a rewrite later, especially once you start layering alerts on top of six or eight symbols at once.

Setting Up Alerts and Preparing Webhooks

Alerts on multi-symbol scripts inherit a quirk that trips up a lot of builders: alert conditions on indicators and strategies are tied to the chart’s timeframe, so a script displaying comparisons across timeframes still fires on whatever interval the chart is set to. Multi-condition alerts add further limits. They can combine up to five conditions, but all conditions must reference the same symbol, which rules out a single multi-condition alert spanning different tickers.

TradingView also protects against runaway notifications. If an alert fires more than 15 times within a three-minute window, it gets automatically deactivated, a common pitfall for baskets of volatile symbols checked on a tight timeframe. The “Once per bar” setting helps control this by limiting triggers to one per candle rather than every tick.

Another detail worth building into your workflow: strategy alerts run as independent server-side copies, so changing an input on your chart does nothing to an alert you already created. You have to delete and recreate it to apply the change.

  • Use JSON payloads in your alert message so receiving systems can parse fields cleanly.
  • Never embed exchange credentials or API secrets directly in the alert body.
  • Enable two-factor authentication on your TradingView account before wiring up live webhooks.
  • Test every new alert against a staging endpoint before pointing it at a live execution system.

Pro Tip: Keep a simple log of when each alert fired and what it sent; it’s the fastest way to catch a misfiring multi-symbol setup before it costs you money.

Fixing Memory, Buffer, and Request-Limit Errors

Unique request.*() calls are capped per script, and while identical repeated calls are generally optimized by TradingView, each distinct symbol-timeframe-expression combination counts against that limit according to TradingView’s documentation. A basket of symbols pulling several indicators can get you there fast.

max_bars_back and calc_bars_count give you levers to control how much historical buffer your script holds in memory, which matters once you’re requesting data across many instruments simultaneously. Lowering these values trims memory use at the cost of how far back certain functions can look.

Common causes of the RE10139 runtime error and their fixes, per TradingView’s error documentation, include:

  • Too many unique request calls: combine requests or move calculations into the requested context instead of pulling raw series and computing locally.
  • Oversized historical buffers: apply calc_bars_count or max_bars_back to cap how much history is held.
  • Excessive simulated orders in backtests: gate order placement with a start date filter so the strategy doesn’t simulate trades across its entire history.

Pro Tip: When backtesting a multi-symbol script, narrow the simulation date range first. It speeds up iteration and often reveals the memory bottleneck before you’ve touched a single line of request code.

From Script to Live Webhook: A Step-by-Step Setup

Building a working multi-symbol system is less about clever Pine Script and more about a disciplined rollout. Here’s a sequence that holds up in practice:

  1. Define your basket and rules. Pick the symbols you want to track and decide whether the logic is a voting system, a threshold crossing, or a trend filter applied across all of them.
  2. Implement requests efficiently. Pull data with request.security(), confirm outputs are non-repainting, and check that timestamps across symbols line up on the same bar close.
  3. Build the alert with a webhook. Point the alert at your receiving URL, use a JSON message with TradingView’s placeholder variables, and test it against a staging endpoint first.
  4. Verify and paper trade. Check your webhook receiver’s logs for a handful of real alerts, then run several through paper trading before any live capital is involved.
  5. Monitor and tune. Watch alert frequency and logs for the first few sessions. If the basket is noisy, widen your conditions or add a debounce so you’re not reacting to every minor wiggle.
Workflow stage What you’re checking Why it matters
Request setup Non-repainting, time-aligned values Avoids false signals from look-ahead bias
Alert creation Correct webhook URL and JSON formatting Ensures payloads parse correctly downstream
Paper trading Match between alert and expected action Confirms the logic before real money is at risk
Live monitoring Alert frequency and receiver logs Catches spam-protection deactivation early

If you want a walkthrough of alert creation itself, our guide on setting up automated trading from TradingView covers that step in more detail, and our piece on alert limits and workarounds is worth a look if your basket is large enough to bump into TradingView’s caps.

Who Should Actually Automate This

Multi-symbol automation earns its keep for active intraday traders, Pine Script developers comfortable debugging request logic, and anyone who needs continuous eyes on more symbols than they can watch manually. It’s a poor fit for someone checking a chart once a day.

We’d recommend staging the rollout: paper trade first, move to small live size once the signals hold up, and only scale to full deployment after a stretch of stable, logged results. Keep alert throttling in place and review your webhook consumers regularly. Markets drift, and a rule that worked cleanly on a smaller basket can behave differently on a larger one.

— Jay

Turning TradingView Alerts Into Executed Trades

Building the script and the webhook is the hard part. Once your multi-symbol alert is firing clean, reliable signals in Tickerly’s alert format, we convert each one into an executed order on your connected exchange, so you’re not pasting prices into an app by hand every time a condition triggers.

One detail matters for baskets. A TradingView alert belongs to the chart it was created on, so the standard Tickerly message, which uses {{ticker}}, trades the chart’s own symbol. When your script decides to trade a different symbol in the basket, build the message in Pine Script yourself: call alert() (or pass alert_message on a strategy order) with Tickerly’s JSON, the ticker set to that symbol as a fixed value, and fixed action and prev_position values for the entry or exit. That is Tickerly’s directional alert format, and Tickerly converts each symbol to your exchange’s naming automatically.

Tickerly

We built our platform around no-code setup, so a Pine Script developer can go from alert to live order without standing up a VPS or writing an execution layer from scratch. We support multiple strategies and alerts, which matters once you’re running a basket of symbols rather than one chart.

  • Connect your webhook once and route alerts to multiple exchanges without rebuilding your integration for each one.
  • Run several multi-symbol strategies at the same time rather than managing separate bots per basket.
  • Review your execution activity so you can keep track of your alerts.

If your multi-symbol script is already producing clean signals, our automated trading plans (Level 2 at $19 per month, Level 3 at $29, Level 4 at $39, and Level 4 Ultra for 2,500 alerts a day) scale with how many strategies and alerts you’re running. Start on a demo connection (any Tickerly connection with “test” in its name routes to the exchange’s demo account), confirm in the alert log that each payload produced the order you expected, then switch the pointer to your live connection once you’re comfortable.

For backtesting across a wider symbol set before you go live, BacktestMarket’s historical intraday data may be useful when your Pine Script basket needs minute-bar data beyond what’s available on-chart.

Turning TradingView Alerts Into Executed Trades — overview diagram

FAQ

Can TradingView alerts monitor more than one symbol at once?

A single alert is tied to the chart and symbol it was created on, but a script can analyze many symbols internally using request.security() and then fire one alert based on combined logic. Multi-condition alerts can combine up to five conditions, though all conditions must use the same symbol.

Why do my multi-symbol strategy alerts stop firing after I change an input?

Strategy alerts run as independent server-side copies, so editing an input on your chart doesn’t update the alert that’s already running. Delete the alert and recreate it to apply any change to its logic.

How many request.security calls can one script use?

There’s a practical cap on unique request.*() calls per script, and TradingView’s own documentation notes that redundant identical calls are typically optimized so they don’t each count separately. Consolidating requests and computing expressions inside the requested context is the most reliable way to stay under the limit.

What’s the safest way to send multi-symbol alerts to a trading bot?

Use a JSON payload in your webhook message, never include exchange credentials in the alert body, and enable two-factor authentication on your account. Test every new webhook against a staging endpoint before connecting it to live execution, whether that’s your own system or a platform like Tickerly.

Does Tickerly support strategies that trade multiple symbols?

Yes, our platform supports multiple strategies and alerts, so a basket of symbols each sending their own webhook can run as separate automated strategies at once. Plans are listed on our automated trading plans page, starting with Level 2 at $19 per month.

This article was produced with Al assistance and reviewed for accuracy. It is provided for general information only and is not professional or financial advice.

Tags :

Latest Post