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.
  • Deploy a strategy to Alpaca. The strategy's Deploy page: the budget per entry at its starting figure, the Alpaca account picked, Deploy, then the new bot's page in My bots, on Alpaca.
  • 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.
  • 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
The strategy's Deploy page: the budget per entry at its starting figure, the Alpaca account picked, Deploy, then the new bot's page in My bots, on Alpaca
Alert sources/TradingView

Setting it up

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.

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": "BTO"
}

The strategy picks the strike and expiry from its own rules.

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 Tradier, TradingView to tastytrade and TradingView to Alpaca.

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 and Trade Ideas.

Point a TradingView alert at Nyria

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