Fix Sell Date in the ClosePositionDialogViewModel

This commit is contained in:
2025-09-04 11:54:34 -04:00
parent af753295a6
commit 2f9ff27c68
4 changed files with 3 additions and 123 deletions

View File

@@ -148,8 +148,6 @@ namespace PortfolioManager.ViewModels
bollingerBandRenderer.ExternalStopLimits = stopLimits;
bollingerBandRenderer.SetData(selectedSymbol, selectedDayCount);
bollingerBandRenderer.Render();
// bollingerBandRenderer.SetData(selectedSymbol, selectedDayCount); // do it twice. The second render will figure out the text image overlaps
// bollingerBandRenderer.Render();
});
workerTask.ContinueWith((continuation) =>
{

View File

@@ -680,7 +680,8 @@ namespace PortfolioManager.ViewModels
sb.Append(showAsGainLoss ? "$ GainLoss" : "% Return");
sb.Append(" ");
sb.Append("(").Append(minDate.ToShortDateString()).Append("-").Append(maxDate.ToShortDateString()).Append(")");
sb.Append(showAsGainLoss ? Utility.FormatCurrency(modelPerformanceSeries[modelPerformanceSeries.Count - 1].CumulativeGainLoss) : Utility.FormatPercent(modelPerformanceSeries[modelPerformanceSeries.Count - 1].CumProdMinusOne));
sb.Append(showAsGainLoss ? Utility.FormatCurrency(modelPerformanceSeries[modelPerformanceSeries.Count - 1].CumulativeGainLoss) :
Utility.FormatPercent(modelPerformanceSeries[modelPerformanceSeries.Count - 1].CumProdMinusOne));
return sb.ToString();
}
if (showAsGainLoss)