Guide
How to set up automated trading
Automated trading for beginners: an alert, a receiver and a broker with an API, set up in that order, tested on paper and checked at the broker.
The three parts
- The alert
- Where the idea to trade comes from. Most often it fires on a TradingView chart, or it's a call posted in a Discord server or Telegram chat that you run.
- The receiver
- Software that is awake whenever the alert can fire. It reads the message, checks your rules and sends an order to the broker. You can write one or use a service.
- The broker
- An account at a broker that publishes an API and ideally offers a paper environment. Robinhood's own agent access is in beta. Nyria connects Robinhood with your Robinhood login, an unofficial connection in beta.
Setting it up, in order
- 1
Write the rules, exit first
Decide what opens a trade and what closes it before you automate either. A trade left open because nobody was watching is the usual way an automated setup goes wrong.
- 2
Make the message name the order
The ticker, the side, and whether it opens or closes. For options add the expiry, the strike and call or put. Leave prices and sizes out unless your receiver reads them.
- 3
Pick a broker with an API
Charles Schwab, Alpaca, tastytrade and Tradier all publish one. Fund it with what the strategy will use, not the whole portfolio.
- 4
Connect alert, receiver and broker
Point the alert's webhook at the receiver, then give the receiver access to the broker account. Keep the webhook URL private.
- 5
Test on paper
Run the whole chain against a paper account until entries and exits both behave.
- 6
Check the fills
Go live with a small allocation, then compare each order with the broker's own order history. An acknowledgement from the receiver proves it received the alert, not that the broker filled it.
The same steps with Nyria
Nyria is the receiver. A strategy holds the alert source and your rules. A bot runs that strategy on one account at Charles Schwab, Alpaca, tastytrade or Tradier, or on Nyria Paper. Schwab, tastytrade and Tradier connect through the broker's own sign-in, and Alpaca with an API key and secret.
Entry, as plain text
long entry AAPL
Exit
exit AAPL long
Nyria reads any alert wording or JSON, with no template. An alert cannot set the size: the bot sets it from the budget per entry you choose, and stocks trade in whole shares. Nyria attaches no stop order to a live entry, so exits come from exit alerts. The alert tester shows how a message will be read before anything trades.
Paper first, then the fills
Nyria Paper is a simulated broker built in and free on every plan, with up to 10 paper bots. Deploy the strategy there and let real alerts fire for a week or two. The strategy's Logs tab shows each alert and each order, so you can see that a message traded what you meant and that each exit closed its entry.
Paper fills pay the quoted spread and never slip, so a live account can fill at a worse price. After you deploy a bot on a live account, open the broker's own order history and match every order to its alert. If a row is missing there, the Logs tab holds the reason.
Questions
- Do I need to write code?
- Not for the Nyria route. You write the alert in your chart or post it in a chat you run, and Nyria reads it. Writing your own receiver against a broker's API is the route that needs code.
- Which broker should the account be with?
- Any broker with an API works with your own receiver. With Nyria, the account must be at Charles Schwab, Alpaca, tastytrade or Tradier, or you can use Nyria Paper.
- What does it cost?
- Paper is free. Live trading from $15 a month.
Guides
What tool turns trading alerts into broker orders?
What an alert is, three ways to automate it, and what to check before you trust it.
Read guideForward test a TradingView strategy free
Up to 10 paper bots, simulated fills, live market data.
Read guideAutomated trading with a full-time job
Watching is not trading: strategies that fit a work day, a weekly review, and alerts that place the orders.
Read guideBroker sandbox vs paper trading
What Nyria Paper, Tradier's sandbox and Alpaca paper each prove.
Read guideDoes Robinhood have an API?
The Crypto Trading API, the Agentic Trading beta and what the Customer Agreement says.
Read guideWhat is the easiest way to automate trading alerts?
Point the alert at a receiver that places the order, with no broker code.
Read guideSet up the first paper bot
No card required. Paper is free. Live trading from $15 a month.