TradingView Strategies
Discord Get started

TradingView Strategies

How TradingView Trading Works

Turn any TradingView alert into a stock, option or spread trade: how an alert reaches your strategy, how to create and name alerts, how to test, and what to check when nothing trades.

A TradingView alert says three things: the ticker, buy or sell, and the price. TradeLabs finds the strategy with the same name, and that strategy decides everything else: shares or options, which contract, how many, and when to get out.

From a TradingView alert to a broker order 1 ALERT FIRES SPY Trend buy · SPY · 600.20 Ticker, buy or sell, and the price. 2 NAME MATCH Alert name = strategy name Case does not matter. No AI key is needed. 3 BUILD THE TRADE Stocks Options Spreads Your strategy's settings pick what to trade. 4 BROKER ORDER Placed on your broker Fills, stops and targets show on Positions and Activity. The alert only says what and which way. Expiration, strikes and size come from your strategy.

What an alert can trade

The same alert can drive a stock, option or spread strategy. Only the strategy’s Instrument changes.

InstrumentBuy alertSell alertGuide
StocksBuys sharesSells themStocks Strategy
OptionsBuys a callCloses it, or flips to a put (set by Direction)Options Strategy
SpreadsOpens a bullish spreadOpens a bearish spreadSpreads Strategy

Which brokers take which instrument is on Brokers & Compatibility.

Before you start: turn on 2FA in TradingView

Heads up

TradingView only sends webhook alerts from accounts with two-factor authentication (2FA) on. Without it, your alerts fire in TradingView but never reach TradeLabs, and the Webhook check never turns Ready.

  1. On tradingview.com, click your profile picture, then Settings and billing.

  2. Open the Privacy and security tab.

  3. Turn on Two-factor authentication and finish the setup with your authenticator app or SMS.

Do this once per TradingView account, before you prepare any alerts.

Step 1: Connect TradingView

In the app, open Signals, choose the TradingView source, click Connect TradingView and sign in. If TradingView asks for a captcha or a 2FA code, use Or sign in manually in the browser. TradingView Signals has every detail.

Step 2: Create the alert in TradingView

Open the chart of the ticker you want to trade, then click Create Alert in the Alerts panel. You only set three fields.

The three fields you set in TradingView's Create Alert dialog Create alert on SPY Condition BB & RSI · Long signal 1 Trigger Once only Once per bar close 2 Alert name BB & RSI indicator long 3 Description, Webhook, Expiration Leave these. TradeLabs sets them when you prepare the alert. 1 Condition Your strategy, or the indicator and which signal: long or short. 2 Once per bar close Fires only on a confirmed candle, so a signal cannot vanish after it fires. 3 Alert name Your TradeLabs strategy name. An indicator adds indicator long or indicator short.
Heads up

Always use Once per bar close. An alert that fires mid-candle can repaint: the signal disappears when the candle closes, but the trade already happened.

Naming the alert

The alert name is how TradeLabs knows which strategy an alert belongs to.

One alert for a strategy script, two for an indicator A TRADINGVIEW STRATEGY SCRIPT SPY Trend Sends buy and sell by itself AN INDICATOR BB & RSI indicator long BB & RSI indicator short TRADELABS STRATEGY SPY Trend TRADELABS STRATEGY BB & RSI same name suffix is dropped when matching
  • A strategy script sends buys and sells by itself. One alert, named exactly like your TradeLabs strategy.
  • An indicator needs one alert per side. End the buy alert’s name with indicator long and the sell alert’s with indicator short.
  • A crossover (EMA, SMA) needs one alert for the cross up and one for the cross down.
  • A plain price alert works too. Name it like SPY Buy Level indicator long.
  • Case does not matter. To route alerts with other names, list them in the strategy’s Alert names field, separated by commas.

Step 3: Prepare the alert in the app

Back in Signals, under TradingView, click Fetch alerts. Each alert is checked for Description, Expiration and Webhook. Click Auto-fix all and wait until every row says Ready. If Webhook will not fix, 2FA is off: see Before you start.

The TradingView source under SignalsThe TradingView source under Signals A Ready alert shows the strategy it routes to. A row that still says Needs fix will not trade.

Step 4: Build the strategy

Follow the guide for what you want to trade: Stocks, Options or Spreads. Every guide starts the same way:

The Signal source section of a TradingView strategyThe Signal source section of a TradingView strategy Set Source to TradingView. Leave Alert names empty to match the strategy’s own name.

Note

No AI key is needed. TradingView alerts are already structured, so there is nothing to read or interpret.

Step 5: Test it

  1. Start with the smallest size, or a paper account.

  2. Fire the alert once from TradingView.

  3. Open Activity. You should see the alert arrive, the order go out, and the fill.

  4. Check Positions. The trade shows with its stop and target.

When nothing trades

What you seeWhyFix
Webhook never turns Ready2FA is off on the TradingView accountTurn on two-factor authentication in TradingView, then Auto-fix all again
The alert never shows in ActivityThe alert is not Ready, or TradingView is signed outFetch alerts, Auto-fix all, and check the sign-in under Signals
Arrives but no strategy picks it upThe name does not matchRename the alert, or add its name to Alert names
Ticker is outside the strategy filterThe strategy’s Ticker list does not include itAdd the ticker, or use ALL
Nothing at all, strategy looks rightThe strategy is switched offTurn it on in Strategies