Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 20:44:07 +0000



Post From: Issue getting stats back for daily close profit and loss

[2021-03-01 21:23:27]
flyboy615 - Posts: 56
Hi,
I had traditionally use the following chunk of code to get the daily profit and loss for the symbol where the study was running.

s_ACSTradeStatistics DailyStats;
sc.GetTradeStatisticsForSymbol(0, true, DailyStats);
double DailyPL = DailyStats.ClosedProfitLoss();

I had always believed that it return the stats for the current day/symbol. It would now seem that for some reason it is returning the stats for the previous day. In this case Friday's trade stats. I've tried to switch over to the new V2 function but seem to get the same results. Is there a setting somewhere I've missed?

Thanks