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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
29 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
46 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment