This article explains how Max contracts, the contracts cap of Riskanto, FlowBots' risk manager for NinjaTrader 8, works: how to set it and its unit (minis, micros or nanos), how it counts the whole account, what happens to an order that would pass it and to a position already over it, worked examples, and how it works with Tradovate's Max open positions.
Short answer
Max contracts is the most contracts an account may hold, every instrument together, counted in the unit you pick, where 1 mini = 10 micros = 100 nanos. An order that would take the account past the cap is refused or cancelled; at the cap, new entries are refused until the position is reduced; anything over the cap is closed at once at market. Closing orders always work, and the account is not locked.
How to set it
- In NinjaTrader's Control Center, open New > FlowBots > Riskanto.
- Make sure the account is Off. On a Flexible account, as installed, the cap cannot be changed while the account is On or locked.
- Right-click the account and choose Rules for <account>...
- In the Trades tab, under Position size, set Max contracts and its unit: M (minis), µ (micros) or n (nanos).
- Click Save, then switch the account On.
In the Compact density you can also type the number in the Max contracts column and click the unit badge beside it to change the unit while the account is Off. Empty or 0 means no cap, which is how Riskanto is installed; the unit starts at minis.
Pick the unit of the contract you trade
A contract counts as a micro or a nano when NinjaTrader's description of the instrument says so (for example MES or MNQ are micros); any other future counts as a mini, full-size contracts such as CL or GC included. Pick the unit of the contract you trade: the order size limit Riskanto sets counts contracts of the cap's unit, so with a smaller unit an order is refused too early, and with a bigger one an order is only cut back after it fills.
It counts the whole account
Every instrument is added together, and long and short positions both count:
- A long ES and a short NQ count as 2 minis.
- NQ +1, MNQ -3 and NNQ +5 count as 13.5 micros, or 1.35 minis.
What happens to orders and positions
- Under the cap: NinjaTrader refuses an order bigger than the room left, in whole contracts of the cap's unit.
- At the cap: new entries are refused until the position is reduced. Closing and cancelling still work. Riskanto tells it as At the limit: new entries are refused until the position is reduced.
- An order that would pass the cap, counting the position and the working orders, is refused or cancelled before it fills, the newest first. Orders that only reduce a position, such as your stops and targets, are never touched. The message is Riskanto: order refused, it would take the account past its contracts cap of 3 minis. The Activity panel shows Order refused (contracts cap).
- A position over the cap has the excess closed at once with a market order on the instrument that grew, for example after a reversal larger than the position. The Activity panel shows Excess closed.
The cap applies while the account is On, not locked and inside its trading hours. If you switch an account On while it holds more than its cap, Riskanto asks first, and OK closes the excess at once with a market order.
Worked examples
- Cap 2 minis, holding 1 ES and 10 MES: exactly 2 minis, at the cap but not over. New entries are refused; nothing is closed.
- Cap 1 mini, holding 3 micros: 0.7 mini of room is less than one whole contract, so the account is at the cap.
- Cap 4, holding 3: room for 1 more.
- Cap 2, holding 3: 1 contract is closed at market.
Tradovate accounts: Max open positions
With Write to the broker (Tradovate) on in Settings, Riskanto writes the cap's number to the account's Max open positions on the Tradovate website. The website counts each contract as one, whatever its size, so a cap of 10 micros is written as 10.
- Riskanto only updates a Max open positions the website already has. If none was ever set, it writes nothing and its own cap acts; set Max open positions once on the website.
- The cell shows a small "B" mark; its tooltip says At the broker as Max open positions: ... contracts of any kind; the broker rejects an order past it.
- With Receive from the broker (Tradovate) on, lowering Max open positions on the website below Riskanto's cap makes it the cap, and the excess is closed at market (when Riskanto's cap is 0 or in minis). A higher website value waits until the account is Off and unlocked.
See Tradovate: exit order rejected, maximum position limit.
What the cap does not guarantee
Fast markets, partial fills and rejected or delayed orders can carry an account past its cap before the excess is closed.
Comments
0 comments
Article is closed for comments.