Guide
Why does my bot say exit quantity exceeds position size?
The bot log shows a line such as Exit quantity 3 exceeds position size 2. The exit asked for more than the bot holds, usually because part of the position was closed outside Nyria. Compare the position size at your broker with the one on the bot. If you closed part of it by hand, close the rest at your broker too.
Official documentation
Fix an exit that asks for too much
- 1
Read the log line
Open the bot's Logs tab. The entry reads Exit quantity, then the number asked for, exceeds position size, then the number the bot holds.
- 2
Open your broker
Check the position size at your broker and compare it with the one shown on the bot.
- 3
Look for hand trades
If you closed part of the position by hand, Nyria's record is behind your broker.
- 4
Close the rest
Close what is left at your broker, so the account and the bot agree again.
- 5
Give the bot its own account
Use an account with no manual trades in it. Nyria tracks the orders it placed, not everything in the account.
What the message means
- Nyria tracks the orders it placed.
- The exit alert asked to sell more than that record shows.
- Nothing is sent for the extra quantity.
Usual causes
- Part of the position was closed outside Nyria.
- You trade the same account by hand.
- Another system trades the same tickers.
- The broker changed the position itself, as in a split or other corporate action.
How to keep the record straight
- Give Nyria an account of its own, with no manual trades in it.
- Check the position at your broker before changing a bot.
- Run the daily check from the order failures page.
Questions
- Does Nyria close the extra quantity?
- No. Fix the mismatch at your broker, where you can see what is really held.
- Is this the same as a skipped exit?
- No. A skipped exit means Nyria tracks no open position at all. This one means it tracks less than the alert asked for.
- Why did the sizes drift apart?
- Usually a hand trade, another system on the same tickers, or a corporate action such as a split.
- How do I stop it recurring?
- Give Nyria an account of its own, with no manual trades in it.
- What does it cost?
- Paper is free. Live trading from $15 a month.
Next
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate TradingView to Alpaca.
- Step by step for one account: how to automate TradingView to tastytrade.
Guides
How do I close or reverse a position with a TradingView alert?
CLOSE with the direction exits. One alert that reports the flip reverses.
Read guideWhat happens to my open position if I pause or delete a trading bot?
Pause closes nothing. Delete with a position open makes the bot Closing only.
Read guideWhy was my trading bot's exit skipped?
Skipped exits send nothing. Five causes, one leaves a position open.
Read guideCan I trade by hand in an account my trading bot uses?
Nyria tracks only its own orders. Keep hand trades out of its account.
Read guideWhy did my broker reject an automated order?
The broker's reason, and the fix for each common rejection.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.