Baglist Layout & Futures Link

This commit is contained in:
HojouFotytu 2020-07-20 13:53:36 +09:00
parent af0fbabe1c
commit c573720420
4 changed files with 20 additions and 6 deletions

View File

@ -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)

View File

@ -241,8 +241,9 @@
<label class="col-md-4 col-form-label">Link Platform <i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top" title="The platform to which the pair name will link if you click on it."></i></label>
<div class="col-md-8">
<select name="Monitor_LinkPlatform" class="form-control">
<option selected="@(Model.PTMagicConfiguration.GeneralSettings.Monitor.LinkPlatform.Equals("TradingView", StringComparison.InvariantCultureIgnoreCase))">TradingView</option>
<option selected="@(Model.PTMagicConfiguration.GeneralSettings.Monitor.LinkPlatform.Equals("Exchange", StringComparison.InvariantCultureIgnoreCase))">Exchange</option>
<option selected="@(Model.PTMagicConfiguration.GeneralSettings.Monitor.LinkPlatform.Equals("TradingView", StringComparison.InvariantCultureIgnoreCase))">TradingView</option>
<option selected="@(Model.PTMagicConfiguration.GeneralSettings.Monitor.LinkPlatform.Equals("TradingViewFutures", StringComparison.InvariantCultureIgnoreCase))">TradingViewFutures</option>
</select>
</div>
</div>

View File

@ -125,9 +125,9 @@
<tr>
<td>DCA Buy Strategies</td>
@if (buyDisabled) {
<td class="text-right text-nowrap">@Html.Raw(buyStrategyText)</td>
<td class="text-right text">@Html.Raw(buyStrategyText)</td>
} else {
<td class="text-right text-nowrap">@Html.Raw(buyStrategyText)</td>
<td class="text-right text">@Html.Raw(buyStrategyText)</td>
}
</tr>
<tr>

View File

@ -110,9 +110,9 @@
// Buy strats
@if (buyDisabled) {
<td class="text-nowrap">@Html.Raw(buyStrategyText)</td>
<td class="text">@Html.Raw(buyStrategyText)</td>
} else {
<td class="text-nowrap">@Html.Raw(buyStrategyText)</td>
<td class="text">@Html.Raw(buyStrategyText)</td>
}
// BS Value
@ -144,7 +144,7 @@
}
// Sell Strats
<td class="text-nowrap">@Html.Raw(sellStrategyText)</td>
<td class="text">@Html.Raw(sellStrategyText)</td>
// SSV
<td class="text-right text-nowrap">@Html.Raw(currentSellValueText)</td>