Re: Candle Stick Chart in VB
What exactly are the values of those grid cells?
1 Attachment(s)
Re: Candle Stick Chart in VB
Here is the exact values of the grids. Friend, I have 120 rows like those. In my code I wrote only one. At the picture, I have send ten of 120. Thanks a lot for your interest.
Attachment 150315
Re: Candle Stick Chart in VB
According to the documentation here, each data point in the series has 4 Y values in the order "high, low, open and close, respectively". So your code should look more like:
Code:
Dim someXvalue As Integer = 60 ' for example
Dim open As Double = CDbl(HesapsonDataGridView.Rows(60).Cells(1).Value)
Dim high As Double = CDbl(HesapsonDataGridView.Rows(60).Cells(2).Value)
Dim low As Double = CDbl(HesapsonDataGridView.Rows(60).Cells(3).Value)
Dim close As Double = CDbl(HesapsonDataGridView.Rows(60).Cells(4).Value)
CANDLE.Series(0).Points.AddXY(someXvalue, high, low, open, close)