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; 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 else
{ {
switch (exchange) 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> <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"> <div class="col-md-8">
<select name="Monitor_LinkPlatform" class="form-control"> <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("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> </select>
</div> </div>
</div> </div>

View File

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

View File

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