This article explains two settings of Riskanto, FlowBots' risk manager for NinjaTrader 8: the Safety margin on the loss limit, which makes Riskanto act a little before a loss limit, and Warn near a loss rule (%), which turns the bar amber and shows Near limit as the day gets close to it. It covers where they are, which rules the margin applies to, worked numbers and what changes on a committed account.
Short answer
The safety margin is an amount Riskanto subtracts from the loss limit to decide where it acts: with a limit of 500 and a margin of 25, the account is locked and flattened at -475. As installed the margin is 0, so Riskanto acts at the limit itself. The warning starts at a share of the way to that point: 80% as installed, so amber from -380 in the same example. 0 turns the warning off.
Where the two settings are
- In NinjaTrader's Control Center, open New > FlowBots > Riskanto.
- Right-click the account grid and choose Settings... The window Riskanto - Settings opens.
- In the group Rules, set Safety margin on the loss limit (an amount, 0 or more) and Warn near a loss rule (%) (a whole number from 0 to 99).
- Click OK or Apply.
Each setting is one value for every account, not one per account.
Which rules the safety margin applies to
| Rule | Safety margin |
|---|---|
| Daily loss limit | Yes: Riskanto acts at the limit minus the margin. |
| Weekly loss limit | Yes, in the same way. |
| Trailing drawdown | Yes: Riskanto acts at the floor plus the margin, when the margin is smaller than the drawdown amount. |
| Daily profit target and weekly profit target | No: they act at the full target. |
| Profit give-back floor | No: it acts at the floor itself. |
| Max loss per trade | No. |
A daily loss limit that Tradovate holds for Riskanto has no safety margin either: the broker acts at its own amount. See How the daily loss limit works.
Worked numbers
- Limit 500, margin 25: Riskanto acts at -475.
- Limit 200, margin 25: nothing at -174.99; the account is locked at -175.00.
- Limit 100, margin 0: Riskanto acts at -100.00, not at -99.99.
- Limit 200, margin 200 or 300: a margin as large as the limit, or larger, is not applied, so Riskanto acts at -200. Otherwise the account would lock at the start of the day. No message warns you when you save such a margin; the rules editor then shows Riskanto acts at ... with no margin.
- Profit target 400 with a margin of 25: the target still acts at +400.00, not before.
When a margin applies, the rules editor shows Riskanto acts at ... (margin ...), and the lock message says The day PnL (...) reached ..., where Riskanto acts: a safety margin of ... before the daily loss limit of ....
How much margin to use
The setting's own hint recommends the larger of 10% of the limit and 8 ticks per contract. With a limit of 500, 10% is 50. The margin is there so that the slippage of the closing orders does not take the day past the limit. With Check a trip caused by open PnL on, a margin above 0 also lets Riskanto check a single odd reading before the trip, using at most half of the margin.
The near-loss warning
The warning is measured from where Riskanto acts, not from the limit itself: it starts at the chosen share of the way to the limit minus the margin.
- Limit 500, margin 25, 80%: Riskanto acts at -475, the warning starts at -380.
- Limit 200, margin 25, 80%: Riskanto acts at -175, the warning starts at -140.
- Limit 200, margin 0, 90%: the warning starts at -180. With 0%, there is no warning.
What you see from that point:
- The loss side of the bar in the Loss limit ◂ day ▸ Target column turns amber (in the Comfortable density, the column Day: loss limit ◂ PnL ▸ target). The Settings hint calls it the Loss / Target bar.
- The Status shows Near limit, with the tooltip Near the loss limit: ... left until Riskanto acts at .... It shows for an account that is On, connected and not locked, when no more important status is showing; a No price or Late price warning takes its place.
- The Activity panel gets a line Near the loss limit: Day PnL ...: ...% of the way to ..., where the loss rule acts.
- Nothing pops up.
The same share also drives the near warning of the trailing drawdown, and turns the target side of the bar amber near an armed profit give-back floor.
On a committed account, a margin change waits
While any account at the Committed or Strict level is On or locked, a change of the safety margin, up or down, is kept for the next trading day's open and today's margin stays. After you apply it, a box says A committed account is on or locked, so the new safety margin applies from the next trading day (...); today it stays .... Settings then shows the group Next trading day with the row Safety margin, next trading day. To cancel the change, set the margin back to today's value. The warning percentage applies at once. See A rule change that waits for the next trading day.
What the margin does not guarantee
A safety margin reduces the risk that slippage, gaps or a fast market carry the day past your limit, but it does not remove it.
Comments
0 comments
Article is closed for comments.