Max Positions
The filter for max_positions allowed blocks signals based on the maximum number of allowed positions per account.
Example Payload
Assume you have open contracts in ES 09-26 and NQ 09-26. If a PLACE order signal arrives for a third instrument with max_positions=2;, for example, the signal will be blocked because no more than 2 positions can be open in the account at one time.
key=your-secret-key;
command=place;
account=sim101;
instrument=CL 4-26;
action=buy;
qty=1;
order_type=market;
tif=day;
max_positions=2;
Valid values for max_positions are any integer value greater than zero.
max_positions works the same with destination=tradovate;: the live position list for the named Tradovate account is checked before the order is sent, and the signal is blocked when the open-position count is already at the limit.
One caveat: Tradovate's position list can lag a few seconds behind very recent fills, so a position opened moments earlier may not be counted yet. Treat max_positions as a guard rail rather than a precise limiter when entries fire within seconds of each other.