diff --git a/Core/ProfitTrailer/SettingsHandler.cs b/Core/ProfitTrailer/SettingsHandler.cs index 93cade3..c46db4c 100644 --- a/Core/ProfitTrailer/SettingsHandler.cs +++ b/Core/ProfitTrailer/SettingsHandler.cs @@ -74,7 +74,13 @@ namespace Core.ProfitTrailer double oldValueOffset = (oldValue * (offsetValuePercent / 100)); // Use integers for timeout and pairs properties, otherwise double - if (configPropertyKey.Contains("rebuy_timeout", StringComparison.InvariantCultureIgnoreCase) || configPropertyKey.Contains("trading_pairs", StringComparison.InvariantCultureIgnoreCase)) + if (configPropertyKey.Contains("timeout", StringComparison.InvariantCultureIgnoreCase) + || configPropertyKey.Contains("trading_pairs", StringComparison.InvariantCultureIgnoreCase) + || configPropertyKey.Contains("buy_volume", StringComparison.InvariantCultureIgnoreCase) + || configPropertyKey.Contains("listed_days", StringComparison.InvariantCultureIgnoreCase) + || configPropertyKey.Contains("orderbook_depth", StringComparison.InvariantCultureIgnoreCase) + || configPropertyKey.Contains("rebuy_count", StringComparison.InvariantCultureIgnoreCase) + || configPropertyKey.Contains("buy_volume", StringComparison.InvariantCultureIgnoreCase)) { // Ensure some values are rounded up to integers for PT comaptability result = ((int)(Math.Round((oldValue + oldValueOffset), MidpointRounding.AwayFromZero) + .5)).ToString(new System.Globalization.CultureInfo("en-US")); diff --git a/Core/ProfitTrailer/StrategyHelper.cs b/Core/ProfitTrailer/StrategyHelper.cs index f83cca5..c7e7b65 100644 --- a/Core/ProfitTrailer/StrategyHelper.cs +++ b/Core/ProfitTrailer/StrategyHelper.cs @@ -140,6 +140,15 @@ namespace Core.ProfitTrailer case "max cost reached": result = "COST"; break; + case "rebuy timeout": + result = "TIMEOUT"; + break; + case "min/max change perc": + result = "MIN/MAX"; + break; + case "buy value below dust": + result = "MIN DUST"; + break; default: break; } diff --git a/Monitor/Pages/SalesAnalyzer.cshtml.cs b/Monitor/Pages/SalesAnalyzer.cshtml.cs index ee27da1..4e17555 100644 --- a/Monitor/Pages/SalesAnalyzer.cshtml.cs +++ b/Monitor/Pages/SalesAnalyzer.cshtml.cs @@ -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; diff --git a/Monitor/Pages/_Layout.cshtml b/Monitor/Pages/_Layout.cshtml index dd49bdf..c0bc50d 100644 --- a/Monitor/Pages/_Layout.cshtml +++ b/Monitor/Pages/_Layout.cshtml @@ -41,7 +41,7 @@