Strategy Message

Quantity Zero

Cannot enter a new {{ actionSentiment }} {{ ticker }} position. Your strategy subscription settings calculated a quantity of zero.

This message indicates that a new position cannot be entered because TradersPost calculated a quantity of zero for the new position. This can happen when you are using a dynamic quantity calculation method based on your accounts total equity value and you don't have enough equity to enter a new position.

Here is a simple example, if your broker account has $200 in it and you send a signal like the following:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "quantityType": "percent_of_equity",
    "quantity": 25
}

In this example, the quantity is calculated as 25% of your total equity, which is $50. With a limitPrice of $100, the calculated quantity is 0.5 shares. Since you cannot buy 0.5 shares, the quantity is rounded down to 0 and you will receive this message.

If you would like to use fractional quantities and your broker support fractional quantities, you can allow it by checking Use fractional quantity in your strategy settings.

Ready to automate your trading? Sign up for free today.