Add PriceLow to MSHMomentumViewModel. Fix bug in CM EDit Position.

This commit is contained in:
2025-03-03 19:42:57 -05:00
parent 912471d94c
commit 508c0bee20
4 changed files with 29 additions and 5 deletions

View File

@@ -1063,7 +1063,7 @@ namespace TradeBlotter.ViewModels
MessageBox.Show("Failed to close the position, check log for details.", "Close Position");
return;
}
String strMessage = String.Format("Closed position for {0}, Purchase Date:{1}, Sell Date{2}, Current Price:{3}. Saved to {4}. A backup was created.",
String strMessage = String.Format("Closed position for {0}, Sell Date{1}, Current Price:{2}. Saved to {3}. A backup was created.",
changedPosition.Symbol,
changedPosition.SellDate.ToShortDateString(),
Utility.FormatCurrency(changedPosition.CurrentPrice),

View File

@@ -1300,6 +1300,7 @@ namespace TradeBlotter.ViewModels
Price price=PricingDA.GetPrice(symbol);
if(null==price)continue;
selectedPosition.CurrentPrice=price.Close;
selectedPosition.CurrentPriceLow=price.Low;
selectedPosition.Volume=price.Volume;
selectedPosition.LastUpdated=price.Date.Date<today.Date?price.Date:today;
}