parent
e95f490717
commit
aa5cc5b801
|
@ -545,7 +545,7 @@ namespace Core.ProfitTrailer
|
|||
|
||||
double oldValueOffset = (oldValue * (offsetValuePercent / 100));
|
||||
|
||||
if (propertyKey.Contains("rebuy_timeout", StringComparison.CurrentCultureIgnoreCase) || (propertyKey.Contains("trading_pairs", StringComparison.CurrentCultureIgnoreCase) )
|
||||
if (propertyKey.Contains("rebuy_timeout", StringComparison.CurrentCultureIgnoreCase) || propertyKey.Contains("trading_pairs", StringComparison.CurrentCultureIgnoreCase))
|
||||
{
|
||||
// Ensure some values are rounded up to integers for PT comaptability
|
||||
newValueString = ((int)(Math.Round((oldValue + oldValueOffset), MidpointRounding.AwayFromZero) + .5)).ToString(new System.Globalization.CultureInfo("en-US"));
|
||||
|
|
Loading…
Reference in New Issue