Guide
Swing-trade stock alerts with position sizing
A swing alert is a ticker, a side and a few days of patience. The part that decides the outcome is the size, and Nyria sets it one of two ways: a dollar budget per entry, or an exact share count. This guide runs a multi-day stock alert from a channel or a chart to a sized order at Charles Schwab, Tradier, tastytrade or Alpaca, and shows what the bot writes when it places nothing.
What you need
- A Nyria account with a connected broker: Charles Schwab, Tradier, tastytrade or Alpaca. All four trade stocks and ETFs in whole shares.
- An alert source that posts entries and exits days apart: a TradingView or TrendSpider alert, a Discord server you run, or a Telegram group or channel you run.
- A number for each entry: the dollars one alert may spend, or the shares it buys. Nyria sizes one of those two ways and no other.
Step by step
- 1
Connect a broker
Open Integrations and sign in at Charles Schwab, Tradier or tastytrade, or paste an Alpaca API key. Nyria Paper is already there, so the strategy can run before any broker is connected.
- 2
Create the strategy and pick the source
Create a strategy that trades stocks and pick the alert source. Add the tickers it may trade, or leave the list open if the alerts name whatever is setting up that week.
- 3
Tell it what an alert means
A buy opens, a sell closes, and a sell with a count trims. A swing alert often carries a stop and a target; Nyria reads them as notes and places nothing between the entry and the exit alert, so the room's stop-out post is the exit.
- 4
Check the format
Paste a real alert, select Check format, then Check and save. Nyria shows the ticker and side it found. The strategy turns Active when every side passes.
- 5
Set the size and test on paper
On the strategy, select Deploy bot. If the switch at the top says Live, select Paper. Set the Budget per entry in dollars, or switch to an exact share count, select Next, then Deploy on Nyria Paper. Hold through a few entries and exits and read each fill on the bot's Logs tab.
- 6
Go live
Deploy a second bot on the broker account with the size that fit on paper. A live bot's budget per entry is what the pricing tier reads, so size the bot first and pick the tier after.
What a swing alert looks like
An entry from a channel, an entry from a chart, and the exit days later.
Discord or Telegram, as the room posts it
Long NVDA here, 225 area. Stop 214, target 248. Multi-day hold.
TradingView, as JSON
{ "ticker": "AAPL", "action": "buy", "price": 341.20 }The exit, from the same room
Out of NVDA at 236, full size.
What the bot does with it
- Reads the ticker and the side. The stop, the target and the hold time in the Discord line are notes; the entry is the only order that leaves.
- Sizes in whole shares. A $2,000 budget per entry with NVDA at 225 buys 8 shares, not 8.88; the bot rounds down and never up, on every broker. An exact share count is placed as written.
- Places a market order, or a limit at the price the alert names if the strategy is set to limit. The fill, the price and the order id land on the Logs tab.
- Holds. Nothing waits at the broker between alerts, so a gap through the room's stop is not acted on until the room posts the exit. That is the trade-off of trading someone else's alerts, and the paper run shows what it costs.
- Closes on the exit alert in whole shares. Out of NVDA closes the whole position; a sell with a count sells that many and keeps the rest.
How the size is set
- Budget per entry, in dollars: the bot divides the budget by the live price and rounds down to whole shares. The same budget buys more of a cheap stock and fewer of an expensive one, which keeps each entry near the same dollar risk.
- Exact share count: the bot places that many shares every time, whatever the price. A $50 stock and a $500 stock get the same count and very different dollar exposure.
- Adding to a position: a second buy alert in the same ticker adds another entry of the same size if the strategy allows adds, and is skipped with a note if it does not.
- On live pricing: the tier is set by total entry allocation, and the pricing page defines that term and gives the tiers. Paper bots are not part of it.
When the bot places nothing
Each refusal is written to the Logs tab next to the alert that caused it. Nothing is ordered on any of them.
One share costs more than the Budget per entry. A $300 budget per entry cannot buy one share of a stock at $341.
One AAPL share costs $341, more than this bot's $300 budget per entry. Raise it to at least $341.
The account has less cash than one share costs. Nyria Paper names no remedy; a live broker is told how much is short.
The refusal on the Logs tab names the share price and the cash available, and nothing is ordered.
A sell arrives with nothing open, or for a ticker the strategy does not trade.
The Logs tab reads No position found for the first, and names the ticker for the second. Nothing is ordered.
Questions
- Does Nyria trade fractional shares?
- No. Stocks and ETFs are ordered in whole shares on every broker, and a dollar budget per entry is rounded down to the share.
- Can one bot size by a percentage of the account?
- No. A bot sizes one of two ways: a dollar budget per entry, or an exact share count. To size by account, set the dollar figure from the account yourself and change it as the account changes.
- What happens to a stop in the alert?
- It is read as a note. Nothing waits at the broker between alerts, so the exit arrives when the alert source sends it.
- Can a swing bot hold overnight and over a weekend?
- Yes. A stock position stays open at the broker until the exit alert, however many days that is.
- What does it cost?
- Paper is free. Live trading from $15 a month.
Related pages
Swing alerts most often start on a chart, so the pair to read next is TradingView to Charles Schwab, and the pricing page defines total entry allocation.
Guides
Size a swing strategy on paper first
Trade and test free on paper, forever. No card required.