From c573720420fe11d6299ad4e759d018e6a79b366e Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Mon, 20 Jul 2020 13:53:36 +0900 Subject: [PATCH] Baglist Layout & Futures Link --- Core/Helper/SystemHelper.cs | 13 +++++++++++++ Monitor/Pages/SettingsGeneral.cshtml | 3 ++- Monitor/Pages/_get/BagDetails.cshtml | 4 ++-- Monitor/Pages/_get/BagList.cshtml | 6 +++--- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/Core/Helper/SystemHelper.cs b/Core/Helper/SystemHelper.cs index 398b403..73cd7d6 100644 --- a/Core/Helper/SystemHelper.cs +++ b/Core/Helper/SystemHelper.cs @@ -547,6 +547,19 @@ namespace Core.Helper result += pairName; } + else if (platform.Equals("TradingViewFutures")) + { + result = "https://www.tradingview.com/chart/?symbol="; + + string pairName = SystemHelper.StripBadCode(market, Constants.WhiteListMinimal); + + if (pairName.StartsWith(mainMarket)) + { + pairName = pairName.Replace(mainMarket, "") + mainMarket; + } + + result += pairName + "PERP"; + } else { switch (exchange) diff --git a/Monitor/Pages/SettingsGeneral.cshtml b/Monitor/Pages/SettingsGeneral.cshtml index 1fdfa3e..5447e0b 100644 --- a/Monitor/Pages/SettingsGeneral.cshtml +++ b/Monitor/Pages/SettingsGeneral.cshtml @@ -241,8 +241,9 @@
diff --git a/Monitor/Pages/_get/BagDetails.cshtml b/Monitor/Pages/_get/BagDetails.cshtml index 273794f..88f2a35 100644 --- a/Monitor/Pages/_get/BagDetails.cshtml +++ b/Monitor/Pages/_get/BagDetails.cshtml @@ -125,9 +125,9 @@ DCA Buy Strategies @if (buyDisabled) { - @Html.Raw(buyStrategyText) + @Html.Raw(buyStrategyText) } else { - @Html.Raw(buyStrategyText) + @Html.Raw(buyStrategyText) } diff --git a/Monitor/Pages/_get/BagList.cshtml b/Monitor/Pages/_get/BagList.cshtml index b1f7eb4..2323bc1 100644 --- a/Monitor/Pages/_get/BagList.cshtml +++ b/Monitor/Pages/_get/BagList.cshtml @@ -110,9 +110,9 @@ // Buy strats @if (buyDisabled) { - @Html.Raw(buyStrategyText) + @Html.Raw(buyStrategyText) } else { - @Html.Raw(buyStrategyText) + @Html.Raw(buyStrategyText) } // BS Value @@ -144,7 +144,7 @@ } // Sell Strats - @Html.Raw(sellStrategyText) + @Html.Raw(sellStrategyText) // SSV @Html.Raw(currentSellValueText)