Fixed TradingView chart flashing in the bag details pop-up

This commit is contained in:
djbadders 2021-02-09 19:49:42 +00:00
parent cd551ef8da
commit 0aa36bac86
2 changed files with 5 additions and 11 deletions
Core/Helper
Monitor/Pages/_get

View File

@ -536,16 +536,7 @@ namespace Core.Helper
string result = "#"; string result = "#";
if (platform.Equals("TradingView")) if (platform.Equals("TradingView"))
{ {
result = "https://www.tradingview.com/chart/?symbol=" + exchange.ToUpper() + ":"; result = "https://uk.tradingview.com/symbols/" + market.ToUpper() + "/?exchange=" + exchange.ToUpper();
string pairName = SystemHelper.StripBadCode(market, Constants.WhiteListMinimal);
if (pairName.StartsWith(mainMarket))
{
pairName = pairName.Replace(mainMarket, "") + mainMarket;
}
result += pairName;
} }
else if (platform.Equals("TradingViewFutures")) else if (platform.Equals("TradingViewFutures"))
{ {

View File

@ -102,7 +102,10 @@
<!-- TradingView Widget BEGIN --> <!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container"> <div class="tradingview-widget-container">
<div id="tradingview_6aa22" style="height:600px;"></div> <div id="tradingview_6aa22" style="height:600px;"></div>
<div class="tradingview-widget-copyright"><a href="@Core.Helper.SystemHelper.GetMarketLink(Model.PTMagicConfiguration.GeneralSettings.Monitor.LinkPlatform,Model.PTMagicConfiguration.GeneralSettings.Application.Exchange, Model.DCAMarket, Model.Summary.MainMarket)" rel="noopener" target="_blank"><span class="blue-text">@Model.DCAMarket</span> <span class="blue-text">chart</span> by TradingView</a></div> <div class="tradingview-widget-copyright">
<a href="@Core.Helper.SystemHelper.GetMarketLink(Model.PTMagicConfiguration.GeneralSettings.Monitor.LinkPlatform,Model.PTMagicConfiguration.GeneralSettings.Application.Exchange, Model.DCAMarket, Model.Summary.MainMarket)" rel="noopener" target="_blank">
<span class="blue-text">@Model.DCAMarket</span> <span class="blue-text">chart</span> by TradingView</a>
</div>
</div> </div>
<!-- TradingView Widget END --> <!-- TradingView Widget END -->
</div> </div>