- 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.


Setting it up
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.
Copy the webhook URL
Copy the strategy's webhook URL from its Integration tab.
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.
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.
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.
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 pricingTest an alert first
Alert testerPaste a TradingView alert and see the order Nyria reads.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.
TradingView alerts, by broker
TradingView to Schwab
Stocks and ETFs, Options up to 4 legs
TradingView to Tradier
Stocks and ETFs, Options up to 4 legs
TradingView to tastytrade
Stocks and ETFs, Options up to 4 legs
TradingView to Alpaca
Stocks and ETFs, Options up to 4 legs, Crypto spot
TradingView to Nyria Paper
Stocks, options, crypto, free
Weighing tools first? See TradingView automation tools compared.
Guides
Auto execute a TradingView strategy
The alert, the webhook URL, the message, a paper test, then live.
Easiest way to automate trading alerts
What an alert is, three ways to automate it, and what to check before you trust it.
Can TradingView auto trade without code?
A chart alert, a pasted webhook URL and a plain-text message: orders at your broker with no code.
Paper trade a TradingView strategy free
Nyria Paper runs up to 10 paper bots with simulated fills on live market data.
TradingView alert not firing?
The alert never fires: expiry, trigger, condition, script errors and limits.
Connect TradingView webhooks to Alpaca
Generate an Alpaca API key, paste Nyria's webhook URL into TradingView, and alerts become orders at Alpaca.
Use cases
Other alert sources
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.