It seems to me this should easily accessible as it is displayed in chart trader but I have not found any documented or undocumented way to do this. Any pointers on how to accomplish this?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Realized PnL
Collapse
X
-
Realized PnL
I would like to create code which retrieves the daily PnL for an account for all trades in that account not related to any strategy, just manual trades. The PnL which is displayed in the chart trader PnL label when flat.
It seems to me this should easily accessible as it is displayed in chart trader but I have not found any documented or undocumented way to do this. Any pointers on how to accomplish this?Tags: None
-
Hi,Originally posted by seahn View PostI would like to create code which retrieves the daily PnL for an account for all trades in that account not related to any strategy, just manual trades. The PnL which is displayed in the chart trader PnL label when flat.
It seems to me this should easily accessible as it is displayed in chart trader but I have not found any documented or undocumented way to do this. Any pointers on how to accomplish this?
right click on the ChartTrader panel -> Chart Trader Properties...
General
Show Realized PnL when flat == true
-
Seahn,
Outsource is correct here.
The Chart Trader has the option to display your realized PnL for the selected account.
http://www.ninjatrader.com/support/h...roperties3.htm
Let me know if I can be of further assistance.Cal H.NinjaTrader Customer Service
Comment
-
Thanks for your reply but I am looking to get that number in C# code so I can use it in other calculations.Originally posted by outsource View PostHi,
right click on the ChartTrader panel -> Chart Trader Properties...
General
Show Realized PnL when flat == true
I am looking for something like
double pnl=RealizedPnL(string acc)
where RealizedPnL calls some Ninja function/code to retrieve the daily Profit/Loss for the account acc.
Comment
-
Seahn,
You would need to query the accounts to get that information. Note that this is unsupported programming with NinjaScript. However, I have attached a thread below to get you started -
http://www.ninjatrader.com/support/f...ad.php?t=55718Cal H.NinjaTrader Customer Service
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