Skip to content

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. 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. 2

    Open your broker

    Check the position size at your broker and compare it with the one shown on the bot.

  3. 3

    Look for hand trades

    If you closed part of the position by hand, Nyria's record is behind your broker.

  4. 4

    Close the rest

    Close what is left at your broker, so the account and the bot agree again.

  5. 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

Try a paper bot first

No card required. Paper is free. Live trading from $15 a month.