thank you
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
pnl del dia
Collapse
X
-
I was giving all this a spin and everything works for me now except that the pnl of the accumulated account of the day appears as null until the closing of the first operation:
protected override void OnAccountItemUpdate(Account account, AccountItem accountItem, double value)
{
AllOverAccount = (string.Format("{2}", account.Name, accountItem, value));
if (accountItem == AccountItem.UnrealizedProfitLoss)
{
PnlNoRealizadoCuenta = TodoSobreCuenta;
}
if (accountItem == AccountItem.RealizedProfitLoss)
{
PnlRealizadoCuenta = TodoSobreCuenta;
}
}
any ideas to make it read the nlp when the strategy starts?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by thumper57, Yesterday, 04:30 PM
|
5 responses
14 views
0 likes
|
Last Post
by thumper57
Today, 04:39 PM
|
||
Started by reynoldsn, 05-10-2024, 07:04 PM
|
5 responses
26 views
0 likes
|
Last Post Today, 04:36 PM | ||
Started by llanqui, Today, 11:10 AM
|
1 response
16 views
0 likes
|
Last Post Today, 04:02 PM | ||
Started by llanqui, Today, 10:29 AM
|
1 response
12 views
0 likes
|
Last Post Today, 03:45 PM | ||
Started by Trader146, 05-10-2024, 09:17 PM
|
1 response
22 views
0 likes
|
Last Post Today, 03:35 PM |
Comment