diff --git a/ViewModels/BollingerBandPositionViewModel.cs b/ViewModels/BollingerBandPositionViewModel.cs index f7a76d7..a16509e 100644 --- a/ViewModels/BollingerBandPositionViewModel.cs +++ b/ViewModels/BollingerBandPositionViewModel.cs @@ -27,7 +27,6 @@ using TradeBlotter.UIUtils; using TradeBlotter.Extensions; using System.Runtime.InteropServices.WindowsRuntime; - // Author:Sean Kessler // This view model is intended to be called by trading models as it will only displayed the data that is provided via the SaveParams and is not editable. // Although this view accepts PortfolioTrades (a collection of PortfolioTrade) THAT collection should only contain a single position @@ -287,8 +286,6 @@ namespace TradeBlotter.ViewModels base.OnPropertyChanged("DisplayName"); BusyContent=DATA_MESSAGE; -// DEBUG -// if (null != portfolioTrades && 0 != portfolioTrades.Count) if(null!=PortfolioTrade) { DateGenerator dateGenerator = new DateGenerator(); @@ -331,9 +328,6 @@ namespace TradeBlotter.ViewModels int nearestDayCount = GetNearestDayCount(marketDaysBetween); prices = PricingDA.GetPrices(SelectedSymbol, latestDate, earliestDate); - - - DateTime earliestInsiderTransactionDate=dateGenerator.GenerateFutureBusinessDate(prices[prices.Count-1].Date,30); insiderTransactionSummaries=InsiderTransactionDA.GetInsiderTransactionSummaries(SelectedSymbol,earliestInsiderTransactionDate); if(PortfolioTrade.IsClosed) @@ -457,15 +451,7 @@ namespace TradeBlotter.ViewModels compositeDataSourceZeroPoint= GainLossModel.Price(zeroPrice); } -// if(null!=PortfolioTrade && PortfolioTrade.IsOpen && null!=zeroPrice) -// { -// compositeDataSourceGainLoss=GainLossModel.CreateCompositeDataSource(zeroPrice.Date,stopLimit.StopPrice); -// compositeDataSourceGainLoss=GainLossModel.CreateCompositeDataSource(zeroPrice.Date,zeroPrice.Close); -// } -// else -// { - compositeDataSourceStopLimit=StopLimitCompositeModel.CreateCompositeDataSource(stopLimits); -// } + compositeDataSourceStopLimit=StopLimitCompositeModel.CreateCompositeDataSource(stopLimits); compositeDataSourceInsiderTransactionPointDisposedSmall=InsiderTransactionModel.InsiderTransactionSummaries(new InsiderTransactionSummaries(disposedSummariesBin[2]),minClose); compositeDataSourceInsiderTransactionPointDisposedMedium=InsiderTransactionModel.InsiderTransactionSummaries(new InsiderTransactionSummaries(disposedSummariesBin[1]),minClose); @@ -706,10 +692,7 @@ namespace TradeBlotter.ViewModels return compositeDataSourceTradePoints; } } - - // ***************************************************************************** M A R K E R S ************************************************************* - // BUY/SELL MARKERS public CenteredTextMarker[] Markers {