BigCandle/Candle

TeeChart for ActiveX, COM and ASP
Post Reply
Petar
Newbie
Newbie
Posts: 40
Joined: Tue Oct 06, 2009 12:00 am

BigCandle/Candle

Post by Petar » Wed Dec 15, 2010 3:06 pm

Hi,

can you tell me what's the main difference between use of Candle and BigCandle.

Thanks,
Petar

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: BigCandle/Candle

Post by Yeray » Wed Dec 15, 2010 4:02 pm

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
BigCandle.png (29.83 KiB) Viewed 5653 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: BigCandle/Candle

Post by Yeray » Wed Dec 15, 2010 4:58 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply