From d8130e5d170bccf62f8fe7c8429925e5558bbc98 Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Wed, 15 Jul 2020 19:04:37 +0900 Subject: [PATCH] Re-Implement Dashboard Bottom GUI changes --- Core/ProfitTrailer/StrategyHelper.cs | 2 +- Monitor/Pages/_get/DashboardBottom.cshtml | 31 ++++++++++++----------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/Core/ProfitTrailer/StrategyHelper.cs b/Core/ProfitTrailer/StrategyHelper.cs index e6b3b0a..ab5aa0f 100644 --- a/Core/ProfitTrailer/StrategyHelper.cs +++ b/Core/ProfitTrailer/StrategyHelper.cs @@ -238,7 +238,7 @@ namespace Core.ProfitTrailer { leverage = strategyName.Remove(0, 9); leverage = leverage.Remove(leverage.Length - 1, 1); - result = "CROSS" + leverage + "X"; + result = "CROSS " + leverage + "X"; } if (result.Contains("ISOLATED")) { diff --git a/Monitor/Pages/_get/DashboardBottom.cshtml b/Monitor/Pages/_get/DashboardBottom.cshtml index 7cf7553..0edb4af 100644 --- a/Monitor/Pages/_get/DashboardBottom.cshtml +++ b/Monitor/Pages/_get/DashboardBottom.cshtml @@ -10,7 +10,7 @@ }
-
+
@if (!Model.TrendChartDataJSON.Equals("")) { @@ -22,9 +22,9 @@ }
-
-
- +
+
+
@{ double currentBalance = Model.PTData.GetCurrentBalance(); string currentBalanceString = currentBalance.ToString("#,#0.00000000", new System.Globalization.CultureInfo("en-US")); @@ -32,16 +32,18 @@ currentBalanceString = Math.Round(currentBalance, 2).ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")); } } -
- TCV:   @currentBalanceString   @Model.Summary.MainMarket  
+
TCV:   @currentBalanceString   @Model.Summary.MainMarket  
- + +
+ Start:   @Model.PTMagicConfiguration.GeneralSettings.Application.StartBalance @Model.Summary.MainMarket + Gain:   @Math.Round(((currentBalance - Model.PTMagicConfiguration.GeneralSettings.Application.StartBalance) / Model.PTMagicConfiguration.GeneralSettings.Application.StartBalance) * 100, 2) % +
- - +
@if (!Model.ProfitChartDataJSON.Equals("")) {
@@ -53,14 +55,13 @@
- -
+
+

Market Trends at @Model.PTMagicConfiguration.GeneralSettings.Application.Exchange more

- @@ -98,8 +99,9 @@
-
+
+

Sales Overviewmore

@{ double totalProfit = Model.PTData.SellLog.Sum(s => s.Profit); @@ -178,7 +180,6 @@
- Starting Balance:   @Model.PTMagicConfiguration.GeneralSettings.Application.StartBalance @Model.Summary.MainMarket
@@ -200,7 +201,7 @@ .x(function(d) { return d.label }) .y(function(d) { return d.value }) .showLabels(true) //Display pie labels - .labelThreshold(.1) //Configure the minimum slice size for labels to show up + .labelThreshold(.1) //Configure the minimum slice size for labels to show up .labelType("percent") //Configure what type of data to show in the label. Can be "key", "value" or "percent" .donut(true) //Turn on Donut mode. Makes pie chart look tasty! .donutRatio(0.3) //Configure how big you want the donut hole size to be.