I have everything set up right, but I can't get the script to look at the account realized profit and loss correctly.
I see this thread https://ninjatrader.com/support/foru...d.php?t=108392
but the logic isn't working for realized or unrealized. I tried to include print statements for "UnrealizedPnl" and nothing is printing. So that tells me it is not working correctly.
I am thinking the "if(e.AccountItem == AccountItem.UnrealizedProfitLoss)" might be incorrect for what I am doing. How is it possible to force the e.AccountItem to equal AccountItem.RealizedProfitLoss?
Thanks
Comment