I am trying to understand how to track my profits / losses within the Strategy code. I thought if I did the code below I would get it. I even tried resetting my simulation account and then I am printing output. The output prints me the following. This is wrong because I have reset my simulation account and I am doing this in simulation mode on the on Bar Update. Please tell me what I am supposed to be doing. I was expecting to be seeing a profit of 0 not -359 ? Thanks
11/2/2011 3:13:00 AM Cumalivtive Profit is -359.999999999999
cumprofit = Performance.AllTrades.TradesPerformance.Currency.C umProfit; // Calculate the cumprofit all strategy days
PrintWithTimeStamp("Cumalivtive Profit is " + cumprofit);

Comment