Class ChartViewModel
Controls chart presentation.
public class ChartViewModel : BaseViewModel, INotifyPropertyChanged
- Inheritance
-
ChartViewModel
- Implements
- Inherited Members
- Extension Methods
Constructors
ChartViewModel()
Initializes a new ChartViewModel.
public ChartViewModel()
Properties
ChartPaneViewModels
Gets/sets the collection of chart pane view models.
public ObservableCollection<PaneViewModel> ChartPaneViewModels { get; set; }
Property Value
HalfPageLeft
Gets the command to move a half page to the left.
public ICommand HalfPageLeft { get; }
Property Value
HalfPageRight
Gets the command to move a half page to the right.
public ICommand HalfPageRight { get; }
Property Value
PageLeft
Gets the page left command which moves chart one full frame to the left.
public ICommand PageLeft { get; }
Property Value
PageRight
Gets the page right command which moves chart one full frame to the right.
public ICommand PageRight { get; }
Property Value
ScrollLeft
Gets the scroll left command which scrolls left by a single bar.
public ICommand ScrollLeft { get; }
Property Value
ScrollRight
Gets the scroll right command which scrolls right by a single bar.
public ICommand ScrollRight { get; }
Property Value
ScrollToEnd
Gets the scroll to end command which scrolls to the end of the chart.
public ICommand ScrollToEnd { get; }
Property Value
ScrollToStart
Gets the scroll to start command which scrolls to the beginning of the chart.
public ICommand ScrollToStart { get; }
Property Value
SetTheme
Gets the set theme command.
public ICommand SetTheme { get; }
Property Value
ShowCrosshairs
Gets/sets whether the crosshairs are visible.
public bool ShowCrosshairs { get; set; }
Property Value
ShowLegends
Gets/sets whether the chart legends are visible.
public bool ShowLegends { get; set; }
Property Value
Theme
Gets/sets the theme used.
public string Theme { get; set; }
Property Value
UndoZoom
Gets the undo zoom command.
public ICommand UndoZoom { get; }
Property Value
UseLogScale
Gets/sets whether the primary pane has a log axis.
public bool UseLogScale { get; set; }
Property Value
VerticalChartGroupId
Gets/sets the vertical chart group id which maintains layout synchronization.
public string VerticalChartGroupId { get; set; }
Property Value
XVisibleRange
Gets/sets the shared XAxis visible range for all charts
public IndexRange XVisibleRange { get; set; }
Property Value
- IndexRange
ZoomExtents
Gets the zoom extents command which zooms all the way out.
public ICommand ZoomExtents { get; }
Property Value
Methods
AddSignalArrows(Strategy)
Adds signal arrows to the primary price plot.
public void AddSignalArrows(Strategy strategy)
Parameters
strategy
Strategy
GetPlotInstructions(params ISeries[])
Returns an array of plot instructions from the specified series. Useful for plotting many series in the same pane (i.e. a broom chart).
public PlotInstruction[] GetPlotInstructions(params ISeries[] series)
Parameters
series
ISeries[]
Returns
Plot(params PlotInstruction[])
Plots the specified plot instructions.
public void Plot(params PlotInstruction[] plots)
Parameters
plots
PlotInstruction[]
Plot(Strategy)
Plots the specified strategy.
public void Plot(Strategy strategy)
Parameters
strategy
Strategy
SetVisibleRange(DateTime, DateTime)
Sets the visible range the specified start and end dates.
public void SetVisibleRange(DateTime startDate, DateTime endDate)
Parameters
ZoomToLastNBars(int, int)
Zooms to the char the specified number of bars, hiding the scroll bar.
public void ZoomToLastNBars(int bars, int extraBars = 0)