Page 1 of 1
BigCandle/Candle
Posted: Wed Dec 15, 2010 3:06 pm
by 15054354
Hi,
can you tell me what's the main difference between use of Candle and BigCandle.
Thanks,
Petar
Re: BigCandle/Candle
Posted: Wed Dec 15, 2010 4:02 pm
by yeray
Hi Petar,
There is a demo of it in the VCL features demo that explains quite well the BigCandle purpose. We'll try to add it in the nexts ActiveX versions.
It says:
The Big-Candle series is a normal Candle (OHLC) financial series that
displays four "marks" showing the Open, High, Low and Close of
every candle point.
The intended use is to show few candle points at a time for better display
of candle prices.
Here is the VB6 code:
Code: Select all
Private Sub Form_Load()
TeeCommander1.Chart = TChart1
TChart1.Header.Text.Text = "Normal Candle (OHLC) series"
TChart1.Legend.Visible = False
TChart1.Aspect.View3D = False
TChart1.AddSeries scCandle
TChart1.Series(0).FillSampleValues 20
TChart2.Header.Text.Text = "Big-Candle"
TChart2.Legend.Visible = False
TChart2.Aspect.View3D = False
TChart2.AddSeries scBigCandle
End Sub
Private Sub TChart1_OnMouseMove(ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)
Dim tmp As Integer
TChart2.Series(0).Clear
tmp = TChart1.Series(0).Clicked(X, Y)
If tmp <> -1 Then
With TChart1.Series(0).asCandle
TChart2.Series(0).asCandle.AddCandle .DateValues.Value(tmp), .OpenValues.Value(tmp), .HighValues.Value(tmp), .LowValues.Value(tmp), .CloseValues.Value(tmp)
End With
End If
End Sub
It would look like follows:
- BigCandle.png (29.83 KiB) Viewed 5644 times
Re: BigCandle/Candle
Posted: Wed Dec 15, 2010 4:58 pm
by yeray
Hi Petar,
I've just added the missing example in the TeeChart AX new features demos. It will be available in the next maintenance release.