Class PlotInstruction
- Namespace
- Balsam
- Assembly
- Balsam.Backtester.dll
Encapsulates instructions to plot a series on a chart.
public class PlotInstruction
- Inheritance
-
PlotInstruction
- Inherited Members
- Extension Methods
Fields
PlotStops
Plot stops.
public static readonly PlotInstruction PlotStops
Field Value
Properties
ChartType
Gets/sets the type of chart. Common types include Line, Point, and Column. Use Stock for OHLC bar charts or Candlestick for candle charts. Defaults to Line.
public string ChartType { get; set; }
Property Value
Color
Gets/sets the color of the plot.
public Color Color { get; set; }
Property Value
IsLogarithmic
Gets/sets whether the y-axis should be logarithmic.
public bool IsLogarithmic { get; set; }
Property Value
LabelFormat
Gets/sets the format of the Y axis label.
public string LabelFormat { get; set; }
Property Value
LineStyle
Gets/sets the line style of the plot. Common values are Solid, Dash, or Dot.
public string LineStyle { get; set; }
Property Value
Pane
Gets/sets the pane in which to plot. 0 is primary pane. Numbers greater than 0 will create a new pane.
public int Pane { get; set; }
Property Value
PaneSize
Gets/sets the size of the pane from 0 to 100.
public float PaneSize { get; set; }
Property Value
RangeHigh
Gets/sets the high series to be used for a range plot. Only Timeseries and Integerseries are supported.
public ISeries RangeHigh { get; set; }
Property Value
RangeLow
Gets/sets the low series to be used for a range plot. Only Timeseries and Integerseries are supported.
public ISeries RangeLow { get; set; }
Property Value
Series
Gets/sets the series to be plotted.
public ISeries Series { get; set; }
Property Value
Text
Gets/sets the text for a horizontal or vertical line.
public string Text { get; set; }
Property Value
TextAlignment
Gets/sets the alignment of text for a horizontal or vertical line. Valid values are 'Near', 'Center' and 'Far'.
public string TextAlignment { get; set; }
Property Value
Width
Gets/sets the width of the plot.
public int Width { get; set; }
Property Value
XValue
Gets/sets the date for a vertical line.
public DateTime? XValue { get; set; }
Property Value
YValue
Gets/sets the Y value for a horizontal line.
public double? YValue { get; set; }