Skip to content
  • Create a strategy with TradingView as its alert source. My strategies, then Create strategy: a strategy name typed in, TradingView picked as its alert source, then Next to what it trades, where Stocks is picked.
  • A TradingView alert becomes a paper trade. A TradingView alert reaches a private Nyria strategy: the BTCUSDT long entry lands in its Logs and fills on Nyria Paper, then the exit alert closes it.
  • Create a strategy with TradingView as its alert source. Creating a strategy from My strategies: QQQ First Hour typed in, TradingView picked from the alert sources, Stocks, Private, QQQ with its current price as the max cost per share, then the Review step's flow from alert to broker.
  • Copy the webhook URL and alert message. The Integration tab: Indicator as the script type, then the alert message and the webhook URL copied.
  • Set the alert condition in TradingView. TradingView's Create alert on SPY dialog: Condition changed from Price to Supertrend str (10, 3), then Expiration set to the custom date 2026-12-03.
  • Add the webhook URL to a TradingView alert. TradingView's alert notification options: Webhook URL ticked and the strategy's trades.nyria.io webhook address pasted into its field.
  • Deploy a bot on Nyria Paper. Deploying a bot on a TradingView strategy: $500 per entry, the review tracing your TradingView alert to Nyria Paper, Deploy, then the new bot's page, Active.

Alert source · TradingView

Automate TradingView alerts

Paste a strategy's webhook URL into a TradingView alert. When it fires, Nyria places the order at your broker.

Pine strategy alertsPrice alertsIndicator alertsText or JSON
My strategies, then Create strategy: a strategy name typed in, TradingView picked as its alert source, then Next to what it trades, where Stocks is picked
Alert sources/TradingView

Setting it up

Want the full walkthrough, from the Pine alert to a paper test and a live bot? Read how to automate TradingView alerts to your broker.

1

Create the strategy in Nyria

Sign in to Nyria and create a strategy. Choose stocks, options or crypto. Set what an entry and an exit do on each side.

2

Copy the webhook URL

Copy the strategy's webhook URL from its Integration tab.

3

Create the TradingView alert

In TradingView, open your chart and select Alert. Under Condition, pick your strategy or indicator. For a strategy, choose Order fills only in the dropdown under it.

4

Paste the webhook URL

In the alert dialog, open Message, paste your alert message and select Apply. Open Notifications, tick Webhook URL, paste your Nyria webhook URL. Select Apply, then Create.

5

Deploy the bot

Back in Nyria, deploy a bot and pick its broker account. The next alert becomes an order.

Watch the setup

How to automate TradingView alerts to your broker (free paper account first)
Start on free Nyria Paper and build a TradingView strategy. Check the alert format, deploy a bot.
Steps in the video
  1. 0:00Pick Nyria Paper or a broker. Open Integrations. Nyria Paper is free and needs no broker, so start there. Charles Schwab, Tradier and tastytrade connect through their own sign-in, and Alpaca takes an API key.
  2. 0:58Create a strategy. Select Create strategy and name it. Then, select your alert source. This example uses TradingView. Pick stocks and a ticker, then create the draft.
  3. 1:28Create the alert in TradingView. Copy the webhook URL and the alert message from the Integration tab. In TradingView, select Message, paste the message and select Apply. Then select Notifications, tick Webhook URL, paste the URL and select Apply.
  4. 3:13Check the format. Select Check format and add an entry and an exit alert. Nyria shows the ticker, side and order it read.
  5. 3:32Deploy a bot. Select Deploy bot, set a budget per entry and pick an account. Nyria Paper is free, so test there first. On a live broker account, pick it on the Account step. Send a sample alert and watch the paper order fill.

Optional formats

TradingView's default message works as written. So does plain text like long entry SPY. TradingView fills in placeholders like {{ticker}}.

Stock entry

{
  "ticker": "{{ticker}}",
  "action": "buy",
  "price": {{close}}
}

A stock buy with ticker and price.

Options entry

{
  "ticker": "SPY",
  "action": "OPEN",
  "direction": "LONG"
}

LONG uses the strategy's call rule, SHORT its put rule. It picks the strike and expiry.

Exit

{
  "ticker": "{{ticker}}",
  "action": "exit"
}

Close the open position on this ticker.

See every format

Pine Script example

//@version=5
strategy("My Automated Strategy", overlay=true)

// Your strategy logic here
longCondition = ta.crossover(ta.sma(close, 14), ta.sma(close, 28))
shortCondition = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))

if (longCondition)
    strategy.entry("Long", strategy.long)
    alert('{"ticker": "' + syminfo.ticker + '", "action": "buy"}', alert.freq_once_per_bar_close)

if (shortCondition)
    strategy.close("Long")
    alert('{"ticker": "' + syminfo.ticker + '", "action": "exit"}', alert.freq_once_per_bar_close)

Use alert.freq_once_per_bar_close so one bar can't send more than one alert.

TradingView sends webhooks only on paid plans with two-factor on.

TradingView pricing

Questions

How do I send TradingView alerts to my broker?

Create a strategy with TradingView as the source and paste its webhook URL into a TradingView alert. It stays inactive until a test alert reads correctly. Steps per broker: TradingView to Schwab, TradingView to Alpaca, TradingView to tastytrade and TradingView to Tradier.

Does a TradingView alert need a JSON template?

No. Send plain text like long entry {{ticker}} or the default TradingView strategy message; JSON works too. Paste a sample into the strategy's Integration tab and select Check format to see what Nyria would place.

Weighing tools first? See TradingView automation tools compared.

Compared with TradersPost, SignalStack, Collective2, 3Commas, PineConnector, Cornix, WunderTrading, Alertatron, PickMyTrade, Option Alpha, Composer, Capitalise.ai, StockHero, Coinrule, WebhookTrade, Algoway, TradingConnector, AutoView, Tickerly, Tradetron, Cryptohopper, Surmount, Trade Ideas, MetaCopier and Botifytrades.

Point a TradingView alert at Nyria

The webhook URL goes in the alert box. No card required.