On a Tradovate account, an order sent to reduce a position can be rejected by Tradovate with "Your maximum position limit has been met", even though the position would get smaller. This article explains why and how to exit.
Quick answer
Tradovate's Max open positions counts the working orders, not only the position. A new order sent to reduce a position that already has its stop and target working counts as one more order on the exit side, so Tradovate may count it as exposure past the limit and reject it.
Riskanto keeps Tradovate's Max open positions equal to the account's Max contracts. With the position at the cap and a full bracket working (for example 4 contracts long, with stops and targets for all 4, cap 4), an extra exit order is rejected by Tradovate. Riskanto itself does not refuse the order: the rejection comes from the broker.
To exit the whole position, use Close: NinjaTrader cancels the working orders first. To take part of the position off, plan it in the ATM strategy (several targets) or keep Max contracts above the size you trade.
Symptoms
- The account is on a Tradovate connection, and Riskanto shows a Max contracts for it.
- The position is at the cap, and its stop and target orders are working (an ATM strategy, Chart Trader's brackets, a strategy's exits).
- An order on the exit side, sent to take part of the position off, comes back Rejected at once.
- NinjaTrader's Log tab shows the broker's text, with numbers like these:
Your maximum position limit has been met. If you would like to request an increase, please submit a risk change request in the Account Settings Limit: Exposed 4 Current: Exposed 5. Scope: all- Close works (NinjaTrader cancels the stop and the target first), and so does a target or stop filling on its own.
- With an ATM strategy, the stop and target cannot be made smaller to make room. NinjaTrader answers: You can't change the size of a predefined strategy stop/target order. To create a new order, set the strategy selector to <None> and place your order.
What is happening
Tradovate's Max open positions does not limit only the position. It limits the account's exposure: the worst position the account could reach if every working order were filled. It counts contracts of any kind, across all instruments (Scope: all), and it counts the stop and the target each as its own order, even when NinjaTrader links them as OCO.
An example (MNQ, Max open positions 4):
| Position | Working sells | Worst case if every sell fills | Exposed | |
|---|---|---|---|---|
| Before the exit | +4 | 8 (4 targets + 4 stops of 1 each) | 4 − 8 = −4 | 4, at the limit |
| With a market SELL 1 | +4 | 9 | 4 − 9 = −5 | 5, past the limit: rejected |
From the broker's side, the new sell plus the 8 bracket orders could leave the account short 5 if all of them filled. It cannot know the stop and the target will never both fill, so it rejects the order, though in practice it would only have reduced the position from 4 to 3.
Why Riskanto is involved: with Settings... > Rules > Write to the broker (Tradovate) on (the default), Riskanto writes the account's Max contracts to Tradovate's Max open positions, so the broker enforces the cap too, on every platform and even when NinjaTrader is closed. The number written is the cap itself. A limit set by hand on the Tradovate website, or by a prop firm, behaves the same way.
Riskanto's own cap, inside NinjaTrader, lets this order through: it treats an order that reduces the position as a closing order, not an entry. On Sim, Rithmic and other connections there is no broker position limit, so the same exit is not rejected this way.
How to exit or scale out
- Exit the whole position: use Close (Chart Trader, SuperDOM, the Positions tab). NinjaTrader cancels the working orders first, then sends the closing order, so the exposure never goes past the limit.
- Plan the scale-out in the ATM strategy itself: an ATM strategy with several targets (for example 2 + 2) takes contracts off through its own working orders, with no new order to send. Moving a target to the market price to take it is not a new order either.
- Leave room above your size: a Max contracts higher than the size you trade leaves room for exit orders on top of the bracket: each contract of cap above the position is room for one contract of exit. This also lets the account hold a bigger position, so choose it knowing that.
- Stop writing the cap to Tradovate (not recommended): turn off Settings... > Rules > Write to the broker (Tradovate). Riskanto then stops writing the cap, and only its own cap inside NinjaTrader acts. Turning it off does not change the website: Max open positions stays at the last value written until you change or switch it off on Tradovate's website. Without it, nothing at the broker enforces the cap when an order comes from outside NinjaTrader.
An ATM strategy's stop and target cannot be resized to make room: NinjaTrader refuses it.
How to confirm it is this
- Open NinjaTrader's Log tab, or the latest
Documents\NinjaTrader 8\log\log.<date>.<n>.txt. Look for the order with New state='Rejected' and Your maximum position limit has been met ... Limit: Exposed N Current: Exposed N+1. The text is Tradovate's: Riskanto's own refusals start with Riskanto:. - Count the working orders on the exit side. If the position minus those orders, minus the new order, goes past the limit, the rejection is this.
- Riskanto's log (
Documents\NinjaTrader 8\Riskanto\log\riskanto-<date>.log) shows Order rejected by the broker's position limit; reading the limit right after it, and no refusal of its own for that order.
Related questions
Is this a Riskanto bug?
No. Tradovate counts working orders this way for any Max open positions. Riskanto puts the cap at the broker so the limit also holds outside NinjaTrader, which is why the broker's way of counting applies to the cap.
Why doesn't Riskanto write a higher number to the broker?
A higher number would let the account go past the cap through orders sent from outside NinjaTrader (the website, the Tradovate app, another platform). The broker's limit is written exactly as the cap so both enforce the same number.
Does it affect my stop or target?
No. A stop or target that fills reduces the position and cancels its OCO partner. Moving a stop or a target to another price changes no quantity.
Can it happen without the position at the cap?
Yes, whenever the working exit orders plus the new order go past the position by more than the limit. For example, 2 contracts long with a stop of 2, a target of 2 and a cap of 2: an exit of 1 gives 2 − 5 = −3, past the limit.
Does it affect Sim or Rithmic accounts?
No. Only Tradovate accounts have Max open positions at the broker. Elsewhere only Riskanto's own cap acts, and it does not count a closing order as an entry.
Comments
0 comments
Article is closed for comments.