Guide
How do I automate TradingView alerts to my broker?
TradingView webhook automated trading needs a receiver: an alert can't place an order at your broker by itself, it can only post to a webhook. Paste your Nyria strategy's webhook URL into the alert. Webhooks need a paid TradingView plan with two-factor sign-in on.

What you need
- A paid TradingView plan with two-factor sign-in on. The free plan can't send webhooks.
- A Pine strategy or indicator that fires the alerts you want to trade.
- A Nyria account. Paper trading is free, needs no card and has no time limit.
- For live orders, an account at Charles Schwab, Alpaca, tastytrade or Tradier. You can start without one on Nyria Paper.
The docs guide covers the same setup screen by screen from inside the product. TradingView's own page on webhook alerts lists its requirements.
TradingView webhook automated trading, step by step
- 1
Create the strategy in Nyria
Go to My strategies and select Create strategy. Name it and pick TradingView as the alert source. Choose the asset type and what an entry and an exit do on each side. Keep it Private, add your tickers and select Create draft.
- 2
Copy the URL and message
Open the strategy's Integration tab and choose Strategy or Indicator. The Create the alert step shows the alert message and the webhook URL, each with a copy button.
- 3
Create the alert in TradingView
Press Alt+A (Option+A on a Mac). Set Condition to your script. For a strategy, open the second dropdown under it and choose Order fills only, not the default. For an indicator, pick its alert and set Trigger to Once per bar close. Set Expiration as far out as your plan allows. Open Message, paste the message from Nyria over the text there and select Apply. Open Notifications, tick Webhook URL, paste the URL over any URL already there and select Apply. Then select Create.
- 4
Check the format
Back in Nyria, select Check format, then Check and save. Nyria reads the message the way it will read a live alert and shows the ticker and side it found. The strategy turns Active when every side passes.
- 5
Test on paper
On the strategy, select Deploy bot. If the switch at the top says Live, select Paper. Set the Budget per entry, select Next, then Deploy on Nyria Paper. Let the alert fire for a few sessions. Each order shows on the bot's Logs tab, so you can hold it up against the alert that caused it.
- 6
Go live
When the paper orders match what you expect, deploy a bot on your broker account, or edit the paper bot and pick the account. Both bots can run side by side on the same strategy. Start with a small budget per entry.
A repainting indicator fires differently live than it plots on past bars. Check yours before it trades; the docs say what to look for.
The webhook URL
Each strategy has its own. Paste it into the alert's Webhook URL box as it is.
Webhook URL format
https://trades.nyria.io/webhooks/<your-strategy-token>
The token belongs to the strategy, so keep the URL private. If it leaks, select Rotate token on the Integration tab and paste the new URL into the alert. If an alert fires and no order follows, work through the webhook checklist.
Sample alert messages
Nyria reads plain text or JSON in your own wording. Every alert needs a ticker, a direction and an action.
Plain text
SPY long entry
JSON with TradingView placeholders
{
"ticker": "{{ticker}}",
"action": "{{strategy.order.action}}",
"marketPosition": "{{strategy.market_position}}",
"prevMarketPosition": "{{strategy.prev_market_position}}"
}TradingView fills in the placeholders before it sends the alert. The size comes from the bot: each bot sizes every order from its own budget per entry. To write one for a stock, option or crypto alert, use the TradingView alert message builder. Copy-ready messages: stocks, options and crypto.
What happens at the broker
- The order goes to the bot's account at Charles Schwab, Alpaca, tastytrade or Tradier, or to Nyria Paper.
- Its size comes from the budget per entry set on the bot, not from the message.
- It's a market or limit order, as the strategy sets.
- An identical alert body that repeats straight after the first is dropped, so a double send from TradingView doesn't open two positions.
- Exits come from your exit alerts. Nyria doesn't attach a stop or a target to a live entry.
The brokers a TradingView alert can trade through today, how each one connects and what each one trades are in the brokers guide.
Questions
- Can TradingView place orders at my broker by itself?
- No. A TradingView alert can't place a broker order. It can post to a webhook, and Nyria receives it and places the order at your broker, or on Nyria Paper first.
- Do I need a paid TradingView plan?
- Yes. TradingView sends webhooks on its paid plans only, with two-factor sign-in turned on. Nyria itself is free to test on paper, with no card.
- Does the alert message need a special format?
- No. Plain text or JSON, in your own wording. Name the ticker and the side. The message Nyria shows in the Create the alert step works as it is, and a message you already use can stay.
- Where is the webhook URL?
- On the strategy's Integration tab, in the Create the alert step. It looks like https://trades.nyria.io/webhooks/ followed by a token that belongs to that strategy.
- What if the webhook URL leaks?
- Anyone with the URL can send alerts to the strategy. Select Rotate token on the Integration tab and paste the new URL into the TradingView alert.
- Can I test without a broker account?
- Yes. Nyria Paper is built in, free and has no time limit. Run up to 10 paper bots before any broker is connected.
- What does live trading cost?
- Paper is free. Live trading on Nyria Pro is from $15 a month. It is priced by your total entry allocation.
TradingView alerts, by broker
TradingView to Schwab
Stocks and ETFs, Options up to 4 legs
TradingView to Alpaca
Stocks and ETFs, Options up to 4 legs, Crypto spot
TradingView to tastytrade
Stocks and ETFs, Options up to 4 legs
TradingView to Tradier
Stocks and ETFs, Options up to 4 legs
TradingView to Nyria Paper
Stocks, options, crypto, free
Weighing tools first? See TradingView automation tools compared, AutoView, TradersPost, PineConnector, SignalStack.
Guides
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.
Read guideForward test a TradingView strategy free
Up to 10 paper bots, simulated fills, live market data.
Read guideShare your TradingView backtest
Export the List of trades, upload it to a strategy, and choose whether visitors see the curve, stats and trades.
Read guideCan you trade directly from TradingView?
The trading panel places orders by hand. Alerts never place orders; the webhook route does.
Read guideTradingView alert not firing?
The alert never fires: expiry, trigger, condition, script errors and limits.
Read guideSend TradingView alerts to Discord
A Discord webhook URL in TradingView's Notifications, five steps, and how to auto-trade the channel.
Read guideHow do I auto execute trades from a TradingView strategy?
An alert on the strategy, Order fills only, and the strategy placeholders in the message.
Read guideSend your first alert to paper
Trade and test free on paper. No card required.