This article explains why Riskanto, FlowBots' risk-management add-on for NinjaTrader 8, refuses an order with the message Riskanto: order refused, the account is locked (...). Closing orders still work. It also covers three related messages: a trip being checked, the contracts cap, and the day's last trade. If your order was rejected, you can't place an order or you can't enter a trade, find your message below.
Short answer
Riskanto judges every new order on an account it protects before NinjaTrader sends it. When the account is locked, an order that would open a position, add to one or reverse it is refused, and the message names the rule that locked the account, for example Riskanto: order refused, the account is locked (daily loss limit). Closing orders still work. The order is refused before it is sent. Closing, reducing and cancelling still work.
Where you see the message
- The message is the reason carried by the refused order, so NinjaTrader shows it with that order.
- Riskanto's Activity panel adds a line for each refusal: Order refused (locked), Order refused (trip being checked) or Order refused (last trade), with the instrument.
- In the Riskanto window, a locked account's row shows a red padlock, and its Status shows the rule's icon and until (...), the time the lock ends.
"The account is locked"
The full message is Riskanto: order refused, the account is locked (...). Closing orders still work. The words in brackets name the rule that locked the account, such as daily loss limit, daily profit target, profit give-back floor, weekly loss limit, weekly profit target, manual lock, trailing drawdown, max trades per day, losing trades in a row or pause after losses.
Which orders are refused and which pass
| Order | On a locked account |
|---|---|
| A new entry on a flat instrument | Refused |
| An order on the same side as the position (adds to it) | Refused |
| A closing-side order larger than the position (a reversal) | Refused |
| A closing-side order up to the size of the position (Close, Flatten, a partial close) | Passes |
| The stop and target of the open position | Pass |
| Cancelling an order | Always works |
Example: you are long 2 MNQ and the account is locked. Selling 1 or 2 passes, because it closes. Buying 1 is refused, because it adds. Selling 3 is refused, because it would reverse the position.
What to do
- Close or reduce the position if you want to; nothing needs to be unlocked for that.
- Wait for the lock to end, or unlock the account from the padlock in the Riskanto grid where your lock allows it. See When a Riskanto daily lock ends and how to unlock.
- A Committed or Strict account, or one with Lock risk settings if trading is locked on, releases its locks later or not at all. See How to commit to your daily loss limit in Riskanto.
"While a rule's trip is being checked"
The full message is Riskanto: order refused while a rule's trip is being checked. Closing orders still work.
- Why it shows: a rule was reached by the open PnL, and Riskanto is confirming it with a second reading before it acts. This happens with Check a trip caused by open PnL on in Riskanto's Settings. A realized loss is never checked this way.
- Which orders: the same as on a locked account. New entries, adds and reversals are refused; closing, reducing and cancelling pass.
- The account is not locked yet. The check usually lasts a fraction of a second. If the second reading confirms the trip, the lock follows and further orders get the account is locked message. If it does not, orders go through again.
- What to do: nothing. Send the order again if you still want it.
"Past its contracts cap"
The full message is Riskanto: order refused, it would take the account past its contracts cap of (...), ending with the account's cap and its unit, for example of 2 micros.
- Why it shows: the account has a Max contracts rule, and the order would take the account above it.
- Which orders: new entries that would go past the cap are refused, and a working entry that would take the account past it is cancelled. Orders that only reduce the position, such as stops and targets, are never touched.
- This is not a lock. The account stays unlocked.
- What to do: send a smaller order, or close or reduce a position first.
"The day's last trade is open"
The full message is Riskanto: order refused, the day's last trade is open: it can be added to and closed; new trades and reversals are refused.
- Why it shows: the account has a max trades per day rule, and the trade that is open now is the last one the day allows.
- Which orders: unlike a lock, adding to the open trade passes, and so does closing it. A new trade or a reversal is refused.
- The account is not locked yet while that trade is open.
- What to do: manage or close the open trade. See Max trades per day for how the rule counts and what happens next.
Orders placed outside NinjaTrader
An order sent on a locked account from the broker's website or app, or from another platform, is judged when NinjaTrader first sees it. If it would open, add to or reverse the position, Riskanto cancels it and the Activity panel shows Outside order cancelled (locked).
Comments
0 comments
Article is closed for comments.