In order to display the stock data items in stick mode, the CandleStyle property of the NStockSeries object should be set to Stick.
C# |
Copy Code
|
---|---|
stock.CandleStyle = CandleStyle.Stick; |
Visual Basic |
Copy Code
|
---|---|
stock.CandleStyle = CandleStyle.Stick |
Stock series displayed in stick mode have the following differences from stock series visualized in candle mode:
1. Control over the visibility of the Open and Close values
The open and close values are displayed as ticks on the line connecting the high and low values. You can control their visibility with the help of the ShowOpen and ShowClose properties, which are set to true by default. The following code will display a High - Low - Close chart.
C# |
Copy Code
|
---|---|
stock.ShowOpen = false; stock.ShowClose = true; |
Visual Basic |
Copy Code
|
---|---|
stock.ShowOpen = False stock.ShowClose = True |
The following code will display High - Low - Open chart:
C# |
Copy Code
|
---|---|
stock.ShowOpen = true; stock.ShowClose = false; |
Visual Basic |
Copy Code
|
---|---|
stock.ShowOpen = True stock.ShowClose = False |
2. Passing data
The Open and Close values are not mandatory when the ShowOpen and ShowClose properties are set to false.
3. Visualization Logic
To differentiate sticks with up and down orientation each stick is displayed entirely with the stroke styles specified by the UpStrokeStyle or DownStrokeStyle.