From 78457fe7bef068ce9237517e9cf08fd617eaa0f8 Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Mon, 1 Feb 2021 15:08:33 +0900 Subject: [PATCH] Threshold on GUI --- Core/ProfitTrailer/StrategyHelper.cs | 4 ++-- Monitor/Pages/MarketAnalyzer.cshtml | 10 +++++++++- Monitor/Pages/_get/DashboardBottom.cshtml | 9 +++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Core/ProfitTrailer/StrategyHelper.cs b/Core/ProfitTrailer/StrategyHelper.cs index 7294cbd..e830c38 100644 --- a/Core/ProfitTrailer/StrategyHelper.cs +++ b/Core/ProfitTrailer/StrategyHelper.cs @@ -19,8 +19,8 @@ namespace Core.ProfitTrailer string strategyLetter = ""; string strategyNameOnly = strategyName; - // PT allows for "advanced_stats" to show details of the trailing logic. - if (result.Contains("STATS")) + // PT allows for "advanced_stats" to show details of the trailing logic and dynamic formulas. + if (result.Contains("STATS") || result.Contains("DYN")) { result = ""; } diff --git a/Monitor/Pages/MarketAnalyzer.cshtml b/Monitor/Pages/MarketAnalyzer.cshtml index 1acb5f6..c7e7e4c 100644 --- a/Monitor/Pages/MarketAnalyzer.cshtml +++ b/Monitor/Pages/MarketAnalyzer.cshtml @@ -162,6 +162,7 @@ else Name Markets Timeframe + Threshold % Change @@ -182,7 +183,14 @@ else @Core.Helper.SystemHelper.SplitCamelCase(marketTrend.Name) @marketCountString - @Core.Helper.SystemHelper.GetProperDurationTime(marketTrend.TrendMinutes * 60, false) + @Core.Helper.SystemHelper.GetProperDurationTime(marketTrend.TrendMinutes * 60, false) @if (marketTrend.TrendThreshold == 0) + { + -- + } + else + { + @marketTrend.TrendThreshold + } @trendChangeOutput% } diff --git a/Monitor/Pages/_get/DashboardBottom.cshtml b/Monitor/Pages/_get/DashboardBottom.cshtml index a00f40e..af019f5 100644 --- a/Monitor/Pages/_get/DashboardBottom.cshtml +++ b/Monitor/Pages/_get/DashboardBottom.cshtml @@ -74,6 +74,7 @@ Name Markets Timeframe + Threshold % Change @@ -95,6 +96,14 @@ @Core.Helper.SystemHelper.SplitCamelCase(marketTrend.Name) @marketCountString @Core.Helper.SystemHelper.GetProperDurationTime(marketTrend.TrendMinutes * 60, false) + @if (marketTrend.TrendThreshold == 0) + { + -- + } + else + { + @marketTrend.TrendThreshold + } @trendChangeOutput% }