This article explains how the daily profit target of Riskanto, FlowBots' risk manager for NinjaTrader 8, works: how to set it, when it acts, what you see on screen, how to unlock, what happens if you switch an account On when it is already past the target, and how it works with Tradovate.
Short answer
When an account's Day PnL reaches or passes the daily profit target, Riskanto closes the account's open positions, cancels its working orders and locks the account until the next trading day opens, exactly as the daily loss limit does. The profit target has no safety margin: it acts at the full target.
How to set it
- In NinjaTrader's Control Center, open New > FlowBots > Riskanto.
- Make sure the account is Off and not locked. On a Flexible account, as installed, the target cannot be changed while the account is On or locked.
- Right-click the account and choose Rules for <account>...
- In the Limits tab, under Daily limits, type the Profit target as a positive amount, for example
400. Empty or 0 turns the rule off, which is how Riskanto is installed. - Click Save, then switch the account On.
You can also type the target straight into the account's row, in the Loss limit ◂ day ▸ Target column: click to edit, Enter to save, Esc to cancel.
When it acts
- The Day PnL is NinjaTrader's realized PnL for the account in the trading day plus the open PnL, so an open profit can reach the target.
- With a target of 400, nothing happens at 399.99; the account is locked at 400.00, even with a safety margin set in Settings.
- A rule trips at most once per trading day.
- With Check a trip caused by open PnL on in Settings (as installed), a target reached only by the open PnL is acted on at once if the bid/ask confirms it, or after a second reading 250 ms later. A target reached by the realized PnL alone acts at once.
What you see when it is reached
- With Settings > Notifications > Show a message when an account locks on (as installed), a message titled <account> locked: daily profit target says The day PnL (...) reached the daily profit target of ...., adds Closed ..., open .... when part of it was still open, then New entries are refused until ..., when the next trading day opens. It shows Closing the open positions and cancelling the working orders... and ends with Done: the account is flat., or There were no open positions or working orders. A sound plays too, unless Play a sound when an account locks is off.
- NinjaTrader's Alerts log always gets the line <account> locked by Riskanto: daily profit target. Day PnL .... No new entries until ....
- The Activity panel gets a line Locked by a rule: Day PnL ... reached the daily profit target of .... No new entries until ....
- The Status shows the rule's icon and until ... (when the lock ends), with the tooltip Locked by the daily profit target (...). New entries are refused; closing orders still work.
Unlocking, and trading on after the target
Without doing anything, the lock ends when the next trading day opens. To unlock earlier, click the padlock and type the phrase I want to unlock the account. The dialog warns that unlocking leaves the account switched off, and that when you switch it on every rule is armed again and trips at once if the PnL is already past it. So, to keep trading after a target:
- Unlock the account with the phrase. It is now Off.
- Raise or clear the profit target.
- Switch the account On again. It trades on until the new target.
On a Committed or Strict account, or with Lock risk settings if trading is locked on, the phrase may not release the lock. See When a Riskanto daily lock ends and how to unlock.
Switching On when the day is already past the target
Riskanto asks first: <account>'s day PnL (...) is already past its daily profit target (...). OK switches the account On, and it is locked and flattened right away; Cancel leaves it Off so you can change the target first. The rules editor shows the same thing ahead of time: The day is already past this profit target: switching the account On locks it at once.
Tradovate accounts
With Write to the broker (Tradovate) on in Settings, Riskanto also writes the profit target to the Tradovate website's daily profit target for the account, as it does with the loss limit. It only updates a daily limit the website already has: if there is none, it writes nothing (the Activity panel shows Daily limit not written to the broker) and Riskanto acts on its own value.
- With Receive from the broker (Tradovate) also on (both are on unless you turned them off), while the website shows Riskanto's value the target is left to the broker alone. When the day reaches it, the Status shows At the broker's limit, and its tooltip says The broker's rule closes the positions and blocks new orders when it acts; Riskanto sends no order for it.
- Riskanto's Settings describe the broker's daily limit as closing the account and locking it there until the session ends. Riskanto cannot release a lock the broker applied.
- If you type a target the day is already past while Write to the broker is on, Riskanto asks before saving it, because the broker will close the positions and lock the account once it is written.
See Riskanto vs. your broker's free risk settings and Replikanto.
Comments
0 comments
Article is closed for comments.