Add PriceLow to MSHMomentumViewModel. Fix bug in CM EDit Position.
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user