My code already updates the account size when a position is closed, but (I think) it doesn't take into consideration when the SL is trigger. Do you how can I do that?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to update account size when the stoploss is triggered?
Collapse
X
-
How to update account size when the stoploss is triggered?
Hello (again),
My code already updates the account size when a position is closed, but (I think) it doesn't take into consideration when the SL is trigger. Do you how can I do that?
Tags: None
-
Hello havy.tom24,
The Account.CashValue will automatically update for real-time orders placed to that account when the Account.PositionUpdate event runs.
If you are wanting to detect when a stop loss fills this can be detected in OnOrderUpdate.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment