Fix Sell Date in the ClosePositionDialogViewModel
This commit is contained in:
@@ -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) =>
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user