added icon for TSL

This commit is contained in:
HojouFotytu 2021-02-18 00:24:47 +09:00
parent 44404e2f30
commit b5b0fc95a3
1 changed files with 16 additions and 2 deletions

View File

@ -21,9 +21,16 @@ namespace Core.ProfitTrailer
// PT allows for "advanced_stats" to show details of the trailing logic and dynamic formulas. // PT allows for "advanced_stats" to show details of the trailing logic and dynamic formulas.
if (result.Contains("STATS") || result.Contains("DYN")) if (result.Contains("STATS") || result.Contains("DYN"))
{
if (result.Contains("STATS-TSL") && (!result.Contains("TSL-STRAT")))
{
result = "TSL";
}
else
{ {
result = ""; result = "";
} }
}
// strategy labels with variable values // strategy labels with variable values
if (result.Contains("BUY TIMEOUT AS")) if (result.Contains("BUY TIMEOUT AS"))
{ {
@ -410,9 +417,16 @@ namespace Core.ProfitTrailer
} }
else if (strategy.Name.Contains("STATS")) else if (strategy.Name.Contains("STATS"))
// Avoid displaying advanced buy stats and completed level formulas // Avoid displaying advanced buy stats and completed level formulas
{
if (strategy.Name.Contains("STATS-TSL") && (!strategy.Name.Contains("TSL-STRAT")))
{
strategyText += "<span class=\"label label-warn\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"" + strategy.Name + "\" >" + StrategyHelper.GetStrategyShortcut(strategy.Name, false) + "<i class=\"fa fa-flag text-success\"></i></span> ";
}
else
{ {
strategy.Name = ""; strategy.Name = "";
} }
}
else if (strategy.Name.Contains("FORMULA")) else if (strategy.Name.Contains("FORMULA"))
// Avoid displaying formula details // Avoid displaying formula details
{ {