Skip to content
NyriaDocs

Automate TradingView alerts to your broker

Turn a TradingView alert into an order at Charles Schwab, Alpaca, tastytrade or Tradier, with no message template to learn and a paper run first.

Watch the setup

4:04
  1. 0:00Pick Nyria Paper or a broker
  2. 0:58Create a strategy
  3. 1:28Create the alert in TradingView
  4. 3:13Check the format
  5. 3:32Deploy a bot

TradingView can fire an alert, but it can't place an order at your broker. Nyria takes the alert at a webhook URL, reads it, and each bot on the strategy places the order in its own brokerage account. This guide covers the setup end to end, from a paper bot to a live one.

What you need

  • A paid TradingView plan with two-factor authentication 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.

Step by step

1. Connect a broker

Select Integrations in the left sidebar. Start with Nyria Paper: select its card, then Create Nyria Paper account.

To add a live account, pick its card in the same grid. Charles Schwab, tastytrade and live Tradier connect by signing in at the broker. Alpaca uses an API key you create. Nyria keeps the broker token encrypted at rest, and the access it holds is for placing and canceling orders. It can't move money.

2. Create the strategy

Go to My strategies and select Create strategy.

  • Name and alert source: name the strategy and pick TradingView.
  • What it trades: pick the asset type and what each alert does. For options, the strategy's rules pick the contract: by delta, by a number of strikes from at-the-money, or as an offset from another leg. A strategy holds up to 4 legs, all on one expiration.
  • Who can copy it: Private keeps the strategy to yourself.
  • Which tickers: add your symbols and the max cost per share or per contract.

On Review, select Create draft.

3. Create the TradingView alert

Open the strategy's Integration tab and choose Strategy or Indicator under Script type. The Create the alert step lists each alert your strategy needs as a checklist, with its message and the webhook URL to copy.

An indicator needs a separate alert for each side. To cover every entry and exit with one alert, convert the indicator to a strategy first.

In TradingView:

  1. Press Alt + A (⌥ + A on Mac) to open a new alert.
  2. Set Condition to your script. For a strategy, choose Order fills only in the second dropdown under it, not the default. For an indicator, pick its alert and set Trigger to Once per bar close.
  3. Set Expiration as far out as your plan allows.
  4. Open Message. Fill in Alert name, replace the text in Message with the alert message from Nyria, then select Apply.
  5. Open Notifications, tick Webhook URL and paste your Nyria webhook URL, replacing any URL already there. Select Apply.
  6. Select Create.

Anyone with the webhook URL can send alerts to the strategy, so keep it private. If it leaks, select Rotate token on the Integration tab and paste the new URL into the alert.

4. Check the format

Back in Nyria, select Check format. Nyria's message is already filled in, so select Check and save. Nyria reads it 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. Deploy a paper bot

On the strategy, select Deploy bot. If the switch at the top says Live, select Paper. Set 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 live account, or edit the paper bot and pick the live account. Paper is free. Live trading from $15 a month. Start with a small budget per entry.

What to put in the alert message

The message Nyria gives you in Create the alert works as it is. If your alerts already carry a message, keep it. Nyria reads plain text or JSON, with no template to match. Every alert needs a ticker, a direction and an action:

SPY long entry
{
  "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, not the message: each bot sizes every order from its own budget per entry.

What happens at the broker

When TradingView posts the alert, Nyria reads it once for the strategy. Then each bot on the strategy places its own order:

  • The order goes to the bot's account at Charles Schwab, Alpaca, tastytrade or Tradier, or to Nyria Paper.
  • Its size comes from the bot's budget per entry.
  • It's a market or limit order, as the strategy sets.
  • An identical alert body repeated within 30 seconds is dropped, so an alert TradingView sends twice doesn't open two positions.
  • Exits come from your exit alerts. Order keys on an alert can attach a stop loss and take profit: see order keys.

Limits today

  • Live orders go to Binance, Coinbase, OKX, MEXC, Charles Schwab, Alpaca, Kraken, Hyperliquid, Kraken Futures, tastytrade, Tradier, Tradovate and My Funded Perps. Webull, Robinhood, Robinhood Crypto, E*TRADE, Gemini, Binance US and Coinbase US are in Beta. TradeStation is coming soon, with no date set.
  • No forex. Futures trade live at tastytrade only, with market orders.
  • Bracket orders run on Nyria Paper, Alpaca paper and Tradier sandbox. OCO runs on Nyria Paper, Alpaca paper and Tradier sandbox. Trailing-stop runs on Nyria Paper and Alpaca paper only. Each account takes its own set: see what each account takes.
  • Options carry up to 4 legs, all on one expiration.
  • No daily-loss cap. A bot keeps taking alerts after a losing day until you pause it.

Your edge, on autopilot.

Trading carries risk. Read the risk disclosure.

© 2026 Nyria LLC. All rights reserved.