Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Custom Risk Parameters To Auto Liquidate Position Based On Max Loss Per Trade
Collapse
X
-
Custom Risk Parameters To Auto Liquidate Position Based On Max Loss Per Trade
Is there any custom indicator or strategy that will auto liquidate my accounts based on max loss per trade? I know most brokers have a max daily loss per day, but I want a max loss per trade. That way no matter what my trades will never hit more then certain loss. Reason why I am asking and not using stoploss, is that I am using a trader copier, and today it messed up causing me to loss daily max loss on all accounts, accept the leading accountTags: None
-
Hello josh18955,
Thank you for your post.
It would be possible to monitor PnL and set limits for profit and/or loss that result in a position being closed. We have an example of halting a strategy once user-defined conditions are met here:
To do this from an indicator for orders that were not generated by the strategy would be a little more complex. You could utilize the Account class and subscribe to account-related events such as ExecutionUpdate, OrderUpdate, and PositionUpdate events to keep track of the PnL in the script. You could potentially set up a condition that, once a certain amount of loss is hit, it cancels all orders for that account and instrument and then creates and submits an order to close out the open position. For more information about the Account class, please see the following section of the help guide:- https://ninjatrader.com/support/help...ount_class.htm
- ExecutionUpdate - https://ninjatrader.com/support/help...tionupdate.htm
- OrderUpdate - https://ninjatrader.com/support/help...rderupdate.htm
- PositionUpdate - https://ninjatrader.com/support/help...tionupdate.htm
- CancelAllOrders() - https://ninjatrader.com/support/help...lallorders.htm
- CreateOrder() - https://ninjatrader.com/support/help...reateorder.htm
- Submit() - https://ninjatrader.com/support/help...nt8/submit.htm
- https://ninjatrader.com/support/help...ount_class.htm
-
Your answer is perfect for what I was looking for. I'll implement in the near future and maybe I'll publish too.
Outside of NinjaTrader competencies I am also hoping that some of the forum members who also connect to Rithmic maybe able to interpret the instruction Rithmic has provided on youtube on how to use their account management risk protections. Rithmic published an uncomprehensible explanation on youtube probably on a lazy day. Based on the many videos that have been published on the matter, it is apparent that many people are getting crazy trying to understand them and they give up.
Comment
-
Thank you for your note.Originally posted by giogio1 View PostYour answer is perfect for what I was looking for. I'll implement in the near future and maybe I'll publish too.
Outside of NinjaTrader competencies I am also hoping that some of the forum members who also connect to Rithmic maybe able to interpret the instruction Rithmic has provided on youtube on how to use their account management risk protections. Rithmic published an uncomprehensible explanation on youtube probably on a lazy day. Based on the many videos that have been published on the matter, it is apparent that many people are getting crazy trying to understand them and they give up.
I tried to search for any existing forum threads that discuss the Rithmic account management risk protections, though I wasn't able to find any that seemed relevant. This thread is certainly open for any forum users to chime in with their interpretation and experience with those parameters if they'd like.
Thank you for using NinjaTrader.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
560 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
325 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment