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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
128 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
65 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
117 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment