diff --git a/Core/DataObjects/PTMagicData.cs b/Core/DataObjects/PTMagicData.cs index b6d34fe..3b1a668 100644 --- a/Core/DataObjects/PTMagicData.cs +++ b/Core/DataObjects/PTMagicData.cs @@ -519,7 +519,7 @@ namespace Core.Main.DataObjects.PTMagicData public double AverageBuyPrice { get; set; } public double TotalCost { get; set; } public double CurrentValue { get; set; } - public double TargetGainValue { get; set; } + public double? TargetGainValue { get; set; } public double Amount { get; set; } public double CurrentPrice { get; set; } public double SellTrigger { get; set; } diff --git a/Monitor/Pages/_get/DashboardTop.cshtml b/Monitor/Pages/_get/DashboardTop.cshtml index c0805d1..914f18d 100644 --- a/Monitor/Pages/_get/DashboardTop.cshtml +++ b/Monitor/Pages/_get/DashboardTop.cshtml @@ -221,7 +221,7 @@ @if ( !(sellStrategyText.Contains("WATCHMODE")) && !(sellStrategyText.Contains("PENDING"))) { - double TargetGain = leverageValue * dcaLogEntry.TargetGainValue.Value; + double TargetGain = leverageValue * dcaLogEntry.TargetGainValue.GetValueOrDefault(); @TargetGain.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"))%
@profitPercentage.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")) %