I am trying to get the Account Realized Profit Loss to string but it disappears every time NinjaScript reloads on Chart.
The RealizedPnL appears only after placing a trade when using code:
private void OnAccountItemUpdate(object sender, AccountItemEventArgs e)
if (e.AccountItem == AccountItem.RealizedProfitLoss)
LastRPnL = e.Value;
How do I get the Realized Profit Loss for the day, or SinceNewSession, regardless of placing a trade or chart refresh?
Comment