More changes for BollingerBands.

This commit is contained in:
2025-06-16 19:59:04 -04:00
parent a46d507c7a
commit e8d3f68b3d
11 changed files with 117 additions and 77 deletions

View File

@@ -750,21 +750,20 @@ namespace PortfolioManager.ViewModels
}
}
[RelayCommand]
[RelayCommand(CanExecute = nameof(CanExecuteBollingerBand))]
public async Task BollingerBands()
{
if (null == selectedGainLossSummaryItem) return;
SaveParameters saveParams = SaveParameters.Parse("Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol," + selectedGainLossSummaryItem.Symbol + ",SelectedWatchList,{All},SelectedDayCount,180,SyncTradeToBand,FALSE");
saveParams.Referer = this;
WorkspaceInstantiator.Invoke(saveParams);
await Task.FromResult(true);
}
// await Task.FromResult(() =>
// {
// SaveParameters saveParams = SaveParameters.Parse("Type,TradeBlotter.ViewModels.BollingerBandViewModel,SelectedSymbol," + selectedGainLossSummaryItem.Symbol + ",SelectedWatchList,{All},SelectedDayCount,180,SyncTradeToBand,FALSE");
// saveParams.Referer = this;
// WorkspaceInstantiator.Invoke(saveParams);
// });
}
public bool CanExecuteBollingerBand()
{
return selectedGainLossSummaryItem == default ? false : true;
}
// ****************************************************** T O O L T I P S *********************************************************
public String DollarChangePercent