sales analzyer page charts are all-time

This commit is contained in:
HojouFotytu 2019-03-22 23:23:32 +09:00
parent 5d47c045f2
commit 829a950777
2 changed files with 4 additions and 1 deletions

View File

@ -146,6 +146,9 @@ namespace Core.ProfitTrailer
case "min/max change perc":
result = "MIN/MAX";
break;
case "buy value below dust":
result = "MIN DUST";
break;
default:
break;
}

View File

@ -58,7 +58,7 @@ namespace Monitor.Pages
if (PTData.SellLog.Count > 0)
{
MinSellLogDate = PTData.SellLog.OrderBy(sl => sl.SoldDate).First().SoldDate.Date;
DateTime graphStartDate = DateTimeNow.DateTime.Date.AddDays(-30);
DateTime graphStartDate = DateTimeNow.DateTime.Date.AddDays(-1850);
if (MinSellLogDate > graphStartDate) graphStartDate = MinSellLogDate;
int tradeDayIndex = 0;