This article explains how Riskanto, FlowBots' risk manager for NinjaTrader 8, counts an account's Day PnL: where the number comes from, what its tooltip shows, the part carried from the previous trading day, MFE and MAE, what an account reset does, the first seconds after connecting, and why a Tradovate account can read 0 shortly before the trading day opens.
Short answer
The Day PnL is NinjaTrader's own realized PnL for the account plus the open PnL of its positions. Riskanto does not keep its own count of the realized part and adds or subtracts nothing from it. The rules count only the current trading day: if NinjaTrader still shows a realized amount from the previous trading day, Riskanto shows it but its rules do not count it.
The Day PnL cell and its tooltip
Point at the Day PnL cell of an account to see how it is made up:
- Realized (as in NinjaTrader): ... · Open: ...
- With a position, a line Open PnL at the bid/ask (Riskanto): ..., Riskanto's own check of the open PnL against the market's bid/ask, or Not checked against the bid/ask: ... with the reason, for example no quote in the last 5 s or the instrument trades in another currency. The rules still read NinjaTrader's open PnL.
- When part of it is from the previous trading day, the line ... of it is from the previous trading day, which NinjaTrader still shows: the rules count only this day's trades.
If the realized part differs from what NinjaTrader itself shows for the account, contact FlowBots support.
The part carried from the previous trading day
When a new trading day opens and NinjaTrader still shows a realized amount that is not 0, Riskanto keeps that amount as carried: it stays in the Day PnL cell, and the rules leave it out. This can happen with a Sim account in a NinjaTrader left open from one trading day to the next, or with a broker account until the broker zeroes its realized PnL.
- Example: NinjaTrader still shows +800 from yesterday and today's trade lost 550. The cell shows +250, but the rules count -550, so a daily loss limit of 500 locks the account.
- The bar, the near-loss warning, the box shown when you switch an account On, and every rule use the rules' value, without the carried part.
- The carried part ends when NinjaTrader zeroes the amount, or at an account reset.
When the carried part matters at switch-on, the box adds the line NinjaTrader shows ...; ... of it is from the previous trading day, which the rules do not count.
At the open of a new trading day
The trading day follows the Trading Hours template chosen in Riskanto's Settings; the break between the close and the next open still belongs to the day that closed. At the open, the rules, MFE and MAE start again from 0. Riskanto does not zero the realized PnL: it stays what NinjaTrader shows. For an account that is On or traded, the Activity panel shows New trading day: The rules, MFE and MAE start again; the realized stays NinjaTrader's. Previous day: realized ..., MFE ..., MAE ....
MFE and MAE
The MFE and MAE columns are hidden as installed; show them from the grid's right-click menu, Columns. They are the highest and the lowest Day PnL (realized plus open) the account reached in the current trading day, counted the way the rules count it, while NinjaTrader was running. Point at a cell to see when it was reached. The lighter part of the bar in the Loss limit ◂ day ▸ Target column shows the same: the MAE to the left, the MFE to the right. They are not the trailing drawdown's peak.
What an account reset does
When you reset a Sim account in NinjaTrader, or Riskanto detects a reset at the broker or prop firm, the day starts again from zero:
- MFE, MAE, the rules that tripped today, the day's trade counts and the carried part are cleared.
- A lock from a daily rule is released, unless nothing may release it (for example with Lock risk settings if trading is locked, a Strict account, or a trailing drawdown lock).
- The rules wait for NinjaTrader to show 0 (from 2 to 30 seconds) before they act again.
The Activity panel shows Account reset, with Reset in NinjaTrader; the day starts again from zero (realized before: ...). or Reset at the broker detected; the day starts again from zero (realized before: ...).
The first seconds after connecting
For 10 seconds after an account connects, the Day PnL is shown but no rule acts on it, because a connection that is still catching up can show a value part way. One exception: while the account holds a position, the daily loss limit still acts on the realized PnL last read from a settled connection plus the open PnL. The profit target and the give-back floor wait for a settled reading.
Why a Tradovate account can read 0 shortly before the open
Tradovate can start its own new day a little before the trading day opens in Riskanto (17:00 CT with the default template, CME US Index Futures ETH). From then until the open, NinjaTrader's realized PnL, and so the Day PnL, can read 0 although Riskanto's trading day has not ended. Riskanto keeps the day's MFE, MAE and locks, and does not take that 0 for an account reset: a locked account stays locked until the open.
Why it can differ from your broker's figure
Riskanto's Day PnL comes from what NinjaTrader and the broker report, and may differ from the figure your broker or prop firm uses, for example where its trading day resets at another time. Set your limits with enough room inside theirs. See How the daily loss limit works.
Comments
0 comments
Article is closed for comments.