Fix issue with Sales Analyzer showing no TCV

This commit is contained in:
djbadders 2021-02-17 15:28:13 +00:00
parent e2e79bdf23
commit 4fdd0ed112
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ namespace Monitor.Pages
double AvailableBalance = PTData.GetCurrentBalance();
foreach (Core.Main.DataObjects.PTMagicData.DCALogData dcaLogEntry in PTData.DCALog)
{
totalCurrentValue = totalCurrentValue + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / dcaLogEntry.Leverage);
totalCurrentValue = totalCurrentValue + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / dcaLogEntry.Leverage != 0 ? dcaLogEntry.Leverage : 1);
}
totalCurrentValue = totalCurrentValue + AvailableBalance;
}