ILNumerics - Technical Application Development
Assembly: ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
Call this method to update time periods, lowest and highest price during each time period, opening and closing price of each time period
[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 void Update( InArray<float> X = null, InArray<float> Low = null, InArray<float> High = null, InArray<float> Open = null, InArray<float> Close = null )
Parameters
- X (Optional)
- Type: ILNumericsInArraySingle
Row Vector that contains time periods. - Low (Optional)
- Type: ILNumericsInArraySingle
Row Vector that contains lowest price of each time period. - High (Optional)
- Type: ILNumericsInArraySingle
Row Vector that contains highest price of each time period. - Open (Optional)
- Type: ILNumericsInArraySingle
Row Vector that contains opening price of each time period. - Close (Optional)
- Type: ILNumericsInArraySingle
Row Vector that contains closing price of each time period.
Exceptions
Exception | Condition |
---|---|
ArgumentException | If input argument X is not a row vector. |
ArgumentException | If input argument Low is not a row vector. |
ArgumentException | If input argument High is not a row vector. |
ArgumentException | If input argument Open is not a row vector. |
ArgumentException | If input argument Close is not a row vector. |
ArgumentException | If input arguments are not of the same size. |
Remarks
[ILNumerics Drawing2 Toolbox]
Examples
Creation of an Candlestick object
private void ilPanel1_Load(object sender, EventArgs e) { int n = 10; Array<float> X = linspace<float>(0, 9, n); Array<float> Low = ones<float>(1, n); Array<float> High = ones<float>(1, n) + 4; Array<float> Open = new float[] { 1, 2, 3, 2, 1, 4, 5, 3, 4, 5 }; Array<float> Close = new float[] { 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)); Close = ones<float>(1, n) * 3; myCandlestick.Update(Close: Close); }
See Also