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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
-
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
-
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 DanielTynera, Today, 01:14 AM
|
0 responses
2 views
0 likes
|
Last Post
by DanielTynera
Today, 01:14 AM
|
||
Started by yertle, 04-18-2024, 08:38 AM
|
9 responses
40 views
0 likes
|
Last Post
by yertle
Today, 01:00 AM
|
||
Started by techgetgame, Yesterday, 11:42 PM
|
0 responses
12 views
0 likes
|
Last Post
by techgetgame
Yesterday, 11:42 PM
|
||
Started by sephichapdson, Yesterday, 11:36 PM
|
0 responses
2 views
0 likes
|
Last Post Yesterday, 11:36 PM | ||
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,615 views
0 likes
|
Last Post
by aligator
Yesterday, 07:22 PM
|
Comment