ILNumerics Ultimate VS

Candlestick Constructor (InArray<Double>, InArray<Double>, InArray<Double>, InArray<Double>, InArray<Double>, Single, Nullable<Color>, Nullable<Color>, Nullable<Color>, Nullable<Color>, Nullable<Color>, Nullable<Color>, Int32, Int32, Int32, Int32, DashStyle, DashStyle, DashStyle, DashStyle, Object)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Constructor defines Candlestick on the basis of the row vectors X, Low, High, Open and Close

[ILNumerics Drawing2 Toolbox]

Namespace:  ILNumerics.Drawing.Plotting
Assembly:  ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public Candlestick(
	InArray<double> X,
	InArray<double> Low,
	InArray<double> High,
	InArray<double> Open,
	InArray<double> Close,
	float bodyWidth = 0,05f,
	Nullable<Color> bullShadowColor = null,
	Nullable<Color> bearShadowColor = null,
	Nullable<Color> bullFrameColor = null,
	Nullable<Color> bearFrameColor = null,
	Nullable<Color> bullFillColor = null,
	Nullable<Color> bearFillColor = null,
	int bullShadowWidth = 2,
	int bearShadowWidth = 2,
	int bullFrameWidth = 2,
	int bearFrameWidth = 2,
	DashStyle bullShadowStyle = DashStyle.Solid,
	DashStyle bearShadowStyle = DashStyle.Solid,
	DashStyle bullFrameStyle = DashStyle.Solid,
	DashStyle bearFrameStyle = DashStyle.Solid,
	Object tag = null
)

Parameters

X
Type: ILNumerics.InArray<Double>
Row vector that usually contains periods.
Low
Type: ILNumerics.InArray<Double>
Row vector that contains lowest price for each period.
High
Type: ILNumerics.InArray<Double>
Row vector that contains highest price for each period.
Open
Type: ILNumerics.InArray<Double>
Row vector that contains opening price for each period.
Close
Type: ILNumerics.InArray<Double>
Row vector that contains closing price for each period.
bodyWidth (Optional)
Type: System.Single
[optional] Width of candlestick bodies, default: 0.05.
bullShadowColor (Optional)
Type: System.Nullable<Color>
[optional] Line color of bull candlestick shadows, default: Black.
bearShadowColor (Optional)
Type: System.Nullable<Color>
[optional] Line color of bear candlestick shadows, default: Black.
bullFrameColor (Optional)
Type: System.Nullable<Color>
[optional] Line color of bull candlestick frames, default: Black.
bearFrameColor (Optional)
Type: System.Nullable<Color>
[optional] Line color of bear candlestick frames, default: Black.
bullFillColor (Optional)
Type: System.Nullable<Color>
[optional] Color of bull candlestick fill areas, default: White.
bearFillColor (Optional)
Type: System.Nullable<Color>
[optional] Color of bear candlestick fill areas, default: Black.
bullShadowWidth (Optional)
Type: System.Int32
[optional] Line width of bull candlestick shadow, default: 2px.
bearShadowWidth (Optional)
Type: System.Int32
[optional] Line width of bear candlestick shadow, default: 2px.
bullFrameWidth (Optional)
Type: System.Int32
[optional] Line width of bull candlestick frame, default: 2px.
bearFrameWidth (Optional)
Type: System.Int32
[optional] Line with of bear candlestick frame, default: 2px.
bullShadowStyle (Optional)
Type: ILNumerics.Drawing.DashStyle
[optional] Line style of bull candlestick shadow, default: Solid.
bearShadowStyle (Optional)
Type: ILNumerics.Drawing.DashStyle
[optional] Line style of bear candlestick shadow, default: Solid.
bullFrameStyle (Optional)
Type: ILNumerics.Drawing.DashStyle
[optional] Line Style of bull candlestick frame, default: Solid.
bearFrameStyle (Optional)
Type: ILNumerics.Drawing.DashStyle
[optional] Line Style of bear candlestick frame, default: Solid.
tag (Optional)
Type: System.Object
[optional] Identifies Candlestick objects in the scene graph.
Remarks

[ILNumerics Drawing2 Toolbox]

Examples

Creation of an Candlestick object

private void ilPanel1_Load(object sender, EventArgs e) {
// Create Data
int n = 10;
Array<double> X = linspace<double>(0, 9, n);
Array<double> Low = ones<double>(1, n);
Array<double> High = ones<double>(1, n) + 4;
Array<double> Open = new double[] { 1, 2, 3, 2, 1, 4, 5, 3, 4, 5 };
Array<double> Close = new double[] { 2, 1, 2, 4, 5, 3, 3, 4, 1, 5 };
var myPlotCube = ilPanel1.Scene.Add(new PlotCube());
var myCandlestick = myPlotCube.Add(new Candlestick(X, Low, High, Open.T, Close.T, bodyWidth: 0.1f));
}
See Also

Reference