From 61e7b749edb747ced724eeee8b5b21424bfb0703 Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Wed, 10 Apr 2019 13:17:39 +0900 Subject: [PATCH 1/3] Strategy Icons --- Core/ProfitTrailer/StrategyHelper.cs | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/Core/ProfitTrailer/StrategyHelper.cs b/Core/ProfitTrailer/StrategyHelper.cs index c7e7b65..45fcea1 100644 --- a/Core/ProfitTrailer/StrategyHelper.cs +++ b/Core/ProfitTrailer/StrategyHelper.cs @@ -20,6 +20,23 @@ namespace Core.ProfitTrailer public static string GetStrategyShortcut(string strategyName, bool onlyValidStrategies) { string result = strategyName; + string time = ""; + + if (result.Contains("FORMULA")) + { + result = "FORM"; + } + + if (result.Contains("REBUY")) + { + time = strategyName.Remove(0,14); + result = "REBUY " + time; + } + + if (result.Contains("CHANGE PERC")) + { + result = "CHANGE"; + } switch (strategyName.ToLower()) { @@ -143,11 +160,8 @@ namespace Core.ProfitTrailer case "rebuy timeout": result = "TIMEOUT"; break; - case "min/max change perc": - result = "MIN/MAX"; - break; case "buy value below dust": - result = "MIN DUST"; + result = "DUST"; break; default: break; From eabcb6aaa1f99f9c71ce0058a45a75603a89301b Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Thu, 11 Apr 2019 11:14:30 +0900 Subject: [PATCH 2/3] Removed old code --- Core/ProfitTrailer/StrategyHelper.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Core/ProfitTrailer/StrategyHelper.cs b/Core/ProfitTrailer/StrategyHelper.cs index 45fcea1..41982df 100644 --- a/Core/ProfitTrailer/StrategyHelper.cs +++ b/Core/ProfitTrailer/StrategyHelper.cs @@ -157,9 +157,6 @@ namespace Core.ProfitTrailer case "max cost reached": result = "COST"; break; - case "rebuy timeout": - result = "TIMEOUT"; - break; case "buy value below dust": result = "DUST"; break; From 2a89d10a6d982fb22b376c3d8f05c5140486039c Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Thu, 11 Apr 2019 11:20:03 +0900 Subject: [PATCH 3/3] removed old code --- Core/ProfitTrailer/StrategyHelper.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/ProfitTrailer/StrategyHelper.cs b/Core/ProfitTrailer/StrategyHelper.cs index 41982df..ca7cd17 100644 --- a/Core/ProfitTrailer/StrategyHelper.cs +++ b/Core/ProfitTrailer/StrategyHelper.cs @@ -22,17 +22,16 @@ namespace Core.ProfitTrailer string result = strategyName; string time = ""; + // strategy labels that are variable, so can't be caught by the switch statement if (result.Contains("FORMULA")) { result = "FORM"; } - if (result.Contains("REBUY")) { time = strategyName.Remove(0,14); result = "REBUY " + time; } - if (result.Contains("CHANGE PERC")) { result = "CHANGE";