Merge branch 'develop' of https://github.com/PTMagicians/PTMagic into pr/267
This commit is contained in:
commit
dfa4b382c3
|
@ -22,7 +22,14 @@ 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"))
|
||||||
{
|
{
|
||||||
result = "";
|
if (result.Contains("STATS-TSL") && (!result.Contains("TSL-STRAT")))
|
||||||
|
{
|
||||||
|
result = "TSL";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// strategy labels with variable values
|
// strategy labels with variable values
|
||||||
if (result.Contains("BUY TIMEOUT AS"))
|
if (result.Contains("BUY TIMEOUT AS"))
|
||||||
|
@ -411,7 +418,14 @@ 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
|
||||||
{
|
{
|
||||||
strategy.Name = "";
|
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 = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (strategy.Name.Contains("FORMULA"))
|
else if (strategy.Name.Contains("FORMULA"))
|
||||||
// Avoid displaying formula details
|
// Avoid displaying formula details
|
||||||
|
|
|
@ -155,7 +155,7 @@ else
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="card-box">
|
<div class="card-box">
|
||||||
<h4 class="m-t-0 m-b-20 header-title"><b>Market Trends at @Model.PTMagicConfiguration.GeneralSettings.Application.Exchange</b></h4>
|
<h4 class="m-t-0 m-b-20 header-title"><b>Market Trend Averages at @Model.PTMagicConfiguration.GeneralSettings.Application.Exchange</b></h4>
|
||||||
<table class="table table-sm">
|
<table class="table table-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -280,7 +280,7 @@ else
|
||||||
string trendChangeOutput = mps.MarketTrendChanges[marketTrend.Name].ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"));
|
string trendChangeOutput = mps.MarketTrendChanges[marketTrend.Name].ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"));
|
||||||
if ((mps.MarketTrendChanges[marketTrend.Name] > marketTrend.TrendThreshold) || (mps.MarketTrendChanges[marketTrend.Name] > marketTrend.TrendThreshold) )
|
if ((mps.MarketTrendChanges[marketTrend.Name] > marketTrend.TrendThreshold) || (mps.MarketTrendChanges[marketTrend.Name] > marketTrend.TrendThreshold) )
|
||||||
{
|
{
|
||||||
<td class="text-right text-autocolor-saw"><i class="fa fa-ban text-muted" data-toggle="tooltip" data-placement="top" title="This coin has been excluded from the average market trend on this timeframe due to your Threshold setting."></i> @trendChangeOutput%</td>
|
<td class="text-right text-autocolor-saw"><i class="fa fa-ban text-muted" data-toggle="tooltip" data-placement="top" title="This coin has been excluded from the Market Trend Averages for this timeframe due to your Threshold setting."></i> @trendChangeOutput%</td>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@ using Core.Helper;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("2.5.3")]
|
[assembly: AssemblyVersion("2.5.4")]
|
||||||
[assembly: AssemblyProduct("PT Magic")]
|
[assembly: AssemblyProduct("PT Magic")]
|
||||||
|
|
||||||
namespace PTMagic
|
namespace PTMagic
|
||||||
|
|
Loading…
Reference in New Issue