and I'm trying to send the profit and loss for that account for the day. However, the number I am getting in my message doesn't agree with what I see in the account itself. Here's the
code I am using, and then the message it generates, and finally what I actually see in the account.
Variable4 = Performance.AllTrades.TradesPerformance.Currency.CumProfit; SendMail("[email protected]", "[email protected]", "Time " + Time[0] + " No Open Positions ", "Current P and L for " + Account.Name + " for the day is " + Variable4);
(Time 10/5/2012 7:16:15 AM No Open Positions) Current P and L for Sim103 for the day is 10072.1473667889
Account Actual Gain for the day is: -578,12.
I don't know how to relate the 10072.147... to the amount I actually see which is in fact a loss of more than $500. Am I getting Variable4 incorrectly?
Thanks
DaveN
Comment