Commit Latest

This commit is contained in:
2025-06-18 20:03:31 -04:00
parent 41b1b57598
commit f4b8d13000
9 changed files with 234 additions and 6 deletions

View File

@@ -97,6 +97,7 @@ namespace PortfolioManager.ViewModels
{
return new List<CommandViewModel>()
{
new CommandViewModel("ScottPlot", new MyRelayCommand(ParamArrayAttribute => this.ViewScottPlot())),
new CommandViewModel("Bollinger Bands", new MyRelayCommand(ParamArrayAttribute => this.ViewBollingerBands())),
new CommandViewModel("Gain/Loss", new MyRelayCommand(ParamArrayAttribute => this.ViewGainLoss())),
new CommandViewModel("Momentum Model", new MyRelayCommand(ParamArrayAttribute => this.ViewMomentum())),
@@ -106,19 +107,33 @@ namespace PortfolioManager.ViewModels
};
}
private void ViewBollingerBands()
private void ViewScottPlot()
{
BollingerBandViewModel workspace = null;
ScottPlotViewModel workspace = null;
if (null == workspace)
{
workspace = new BollingerBandViewModel();
workspace = new ScottPlotViewModel();
workspace.WorkspaceInstantiator = InstantiateWorkspace;
workspace.Referer = GetReferal();
// AddMenuItem(workspace);
this.Workspaces.Add(workspace);
}
this.SetActiveWorkspace(workspace);
}
}
private void ViewBollingerBands()
{
BollingerBandViewModel workspace = null;
if (null == workspace)
{
workspace = new BollingerBandViewModel();
workspace.WorkspaceInstantiator = InstantiateWorkspace;
workspace.Referer = GetReferal();
// AddMenuItem(workspace);
this.Workspaces.Add(workspace);
}
this.SetActiveWorkspace(workspace);
}
private void ViewCMTrend()
{