Re: Profit per Day / Top Ten List apparent error
You are right!
private void CalculateProfitPerDay()
{
TestedDays = (DataSet.Time[DataSet.Bars - 1] - DataSet.Time[Strategy.FirstBar]).Days;
if (TestedDays < 1)
TestedDays = 1;
MoneyProfitPerDay = (MoneyBalance(DataSet.Bars - 1) - Profile.InitialAccount)
/ TestedDays;
}
.Days must be .TotalDays
Thank you!!!!
Re: Profit per Day / Top Ten List apparent error
I have not noticed this before....
Nobody noticed this for the last 2 years. Even the open source ....
Thank you again!!
Re: Profit per Day / Top Ten List apparent error
It appears that there is no error here.
Days returns the whole count of days passed.
TotalDays returns whole and fractional days.
For example TotalDays returns 125.17 days, Days will return 125.
My initial intent was to measure only whole tested days. Probably that was the reason to use Day function.
It also includes weekends (intentionally).
Please post stats data of strategies you think is not calculated properly.
Re: Profit per Day / Top Ten List apparent error
It appears that there is no error here.
I remember when this function first appeared, I made sure it reads out correct values, and to me numbers added up perfectly.
Re: Profit per Day / Top Ten List apparent error
I just noticed it with the example I posted................ and do not recall seeing it before.
Looks like it reappeared
Re: Profit per Day / Top Ten List apparent error
Please attach a single strategy and stats where you thing there is an error. If I reproduce it, I'll fix it in minutes.
Re: Profit per Day / Top Ten List apparent error
I will watch for it, most of the time my machine is unattended, it is only by chance that I see these...