I need it to stop when hitting max daily loss limit. But i'm not sure how to track pnl accurately so that it will work in strategy analyzer. Already works fine in live or replay of course because i can access account object.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Get PnL in Strategy Analyzer?
Collapse
X
-
Get PnL in Strategy Analyzer?
When testing in Strategy Analyzer, can my strategy get the account realized and unrealized PnL?
I need it to stop when hitting max daily loss limit. But i'm not sure how to track pnl accurately so that it will work in strategy analyzer. Already works fine in live or replay of course because i can access account object.Tags: None
-
Hello iantriestrading,
To use PnL values in the analyzer you would have to use this example:
-
Hey Jesse! Hope you've been well and thanks for the help over the last several months since I started posting.
Does that example code include a way to get unrealized pnl too? Or does SystemPerformance.AllTrades.TradesPerformance.Curr ency.CumProfit already include unrealized pnl?
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
20 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
119 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|

Comment