This message indicates that a new position cannot be entered because TradersPost calculated a quantity of zero for the entry order. This can happen in a few different scenarios as explained below.
You are using a dynamic quantity calculation method like Percent of equity
or Amount per position
and you don't have enough money available to calculate a quantity greater than zero for the entry order.
Here is a simple example, if your broker account has $200
in it and you send a signal like the following to buy AAPL
for $100
using 25%
of your equity, it would not be possible to enter a new position because the calculated quantity would be 0.5
shares but you cannot buy fractional shares.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"quantityType": "percent_of_equity",
"quantity": 25
}
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.
This can also happen if you are using option chain scanning and the contract that was selected costs more than the allowed amount of money per position that you have configured. To fix this, you can either increase the allowed Percent of equity
or Amount per position
or specify a Fixed quantity
instead of using a dynamic quantity calculation method.
You have Subtract exit quantity from signal quantity
checked in your strategy subscription settings and the quantity you sent in your signal only has enough quantity to exit the open position and not enough to enter a new position on the other side.
Here is an example, if you have Subtract exit quantity from signal quantity
checked in your strategy subscription settings and you have an open long bullish position in AAPL
with a quantity of 10
and you send a signal with a quantity of 10
like the following:
{
"ticker": "AAPL",
"action": "sell",
"quantity": 10
}
Since you have Subtract exit quantity from signal quantity
checked in your strategy subscription settings, the quantity of 10
will be subtracted from your open position and you will be left with a quantity of 0
for your new position so it will not be possible to enter a new position on the other side.
If you want to both exit the open position and enter a new position on the other side, you can send a signal with enough quantity to exit the open position and enter a new position on the other side. For example, if you send a signal like the following it will both exit the open position with a quantity of 10
and enter a new position on the other side with a quantity of 10
.
{
"ticker": "AAPL",
"action": "sell",
"quantity": 20
}