Skip to content

Guide

How to automate trading alerts into broker orders

An alert only tells you something happened. Turning it into an order means a program has to read it, check it and send it to your broker. This guide covers what counts as an alert, three ways to do the reading and sending, and what has to be true before you trust any of them with real money.

What counts as an alert

  • A TradingView alert on a chart, indicator or strategy, sent to a webhook URL when its condition is met.
  • A Discord call: a caller posts something like BTO SPY 12/18 780C in a channel.
  • A Telegram post: the same kind of call in a group or channel.
  • A TrendSpider alert or Strategy Bot, which posts to a webhook when it fires.
  • Any other tool that can send text or JSON to a URL.

All five come down to the same thing: text that names a ticker and a side and, for options, a contract. Automation is a reader for that text and a sender for the order.

Three ways to automate an alert

  1. 1

    Write your own webhook server

    You get full control, any logic you can code and no monthly fee. You also own everything that can fail: the server has to be up when the alert fires, the broker login has to be refreshed, every alert format has to be parsed, repeats have to be caught and every order needs a log. It suits someone who codes and trades one broker.

  2. 2

    Use a hosted bridge such as Nyria

    The readers for TradingView, Discord, Telegram and TrendSpider are built, the broker connections are kept for you and each alert is logged. The costs are another service between the alert and your broker, a limit to the brokers and order types it supports, and a monthly fee once you trade live. Nyria's four brokers do not give it withdrawal permission.

  3. 3

    Use the broker's own alerts, where they exist

    Nothing sits in the middle and nothing is added to your bill. But most broker alerts notify you or act on a price condition inside that broker. They do not read a Discord call or a TradingView alert, and what is available differs by broker and account type. They fit when the signal is a price level at the broker you already use.

What has to be true before you trust it

  1. 1

    Paper first

    Run the real alert path against a paper account and hold each order against the message that caused it. A bridge with no log of what it read and what it did is not ready for live money. Nyria Paper simulates fills on live market data and is free.

  2. 2

    Duplicate-alert protection

    Sources send twice. TradingView can double send, and a Telegram channel and its discussion group mirror each other, so reading both trades one call twice. Ask what your setup does with an identical alert straight after the first. Nyria drops an identical body that repeats at once, and you point a strategy at the channel or its discussion group, never both.

  3. 3

    Exits matched to the position

    An exit has to close what the entry opened, leg for leg on a spread. Nyria does not attach a stop or a target to an entry: exits come from your exit alerts, so with no exit alert nothing closes. A paused bot ignores every alert, exits included, and what it holds stays open at the broker.

  4. 4

    Broker sessions that expire

    A broker login that has lapsed cannot place an order. Charles Schwab asks you to sign in again every 7 days. Check each connection before a trading week, and read the log, which records every refusal.

  5. 5

    Position sizing by budget

    Size should come from a budget you set on the bot, not from the message. An alert that says buy 1000 shares should not decide your risk. On Nyria each bot has a budget per entry, and a trading window ignores entries outside the hours you set while exits still go through.

A checklist for each source

What to set up on the alert side, for the sources Nyria reads.

TradingView
A paid plan with two-factor sign-in on. In the alert, turn on Webhook URL and paste the strategy's URL, then paste a message that names the ticker and the side.
Discord
Invite the bot to a server you run, which needs Manage Server, and pick one channel. Add an author or keyword filter if the channel carries chat.
Telegram
Add Nyria to a group or channel you run, as an admin that only reads, and choose the chat.
TrendSpider
In Account & Settings check Webhook, paste the URL and set the method to POST. Write buy or sell into each alert note and leave the quantity out.

A webhook message in JSON

{ "ticker": "SPY", "action": "buy" }

Any other tool can post text or JSON to the strategy's webhook URL. The step-by-step guides for TradingView, Discord and Telegram walk each one through.

Where Nyria places orders, and where it does not

Nyria places orders at Charles Schwab, Tradier, tastytrade and Alpaca: stocks, options up to 4 legs on one expiration, and crypto spot at tastytrade and Alpaca. It does not place futures or forex orders, and it does not connect to Interactive Brokers, Robinhood or Webull. If you trade on one of those, a different tool or your own server is the way to automate, and Nyria is not.

Questions

Do I need to write code?
Not for a hosted bridge. You paste a URL or pick a channel, and the message can stay in your own wording or JSON. Writing your own webhook server does need code.
Can I test without risking money?
Yes. Deploy a bot on Nyria Paper first and let a real alert fire. Each order shows in the bot's log next to the message that caused it.
Does it place futures or forex orders?
No. Nyria places stocks, options and crypto spot orders only.

Start with one paper bot

Paper is free. Live trading from $15 a month.