Question for old program using V6 Tchart and ActiveX

TeeChart for ActiveX, COM and ASP
Post Reply
dcurrier
Newbie
Newbie
Posts: 32
Joined: Thu Jul 15, 2004 4:00 am

Question for old program using V6 Tchart and ActiveX

Post by dcurrier » Tue Mar 24, 2009 5:24 pm

I have an old program that still gets used occasionally with version 6 AX.

Someone asked me to change the pen width on the lower Bollinger band. I remember having some trouble with the lower bb. Pr4obably why I didn't do it before.

Anyhow I cant seem to figure it out. My prog referred to this path but I cant seem to get it to work.

FunctionType.asBollinger.LowBand......

I can get the line width to change for the upper band but not the lower band.

I suppose I should upgrade to V8 but this is a 1 time thing,

Thanks,

David

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

Post by Yeray » Wed Mar 25, 2009 8:49 am

Hi David,

I've tried the following example in TeeChart ActiveX v6.0.0.6 and it seems to work as expected. Could you see if it works for you?

Code: Select all

Private Sub Form_Load()
  TChart1.Aspect.View3D = False
  
  TChart1.AddSeries scPoint
  
  TChart1.Series(0).FillSampleValues 25
  
  TChart1.AddSeries scLine
  
  With TChart1.Series(1)
    .SetFunction tfBollinger
    .DataSource = TChart1.Series(0)
    .FunctionType.asBollinger.LowBand.Pen.Width = 2
  End With
End Sub
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

dcurrier
Newbie
Newbie
Posts: 32
Joined: Thu Jul 15, 2004 4:00 am

Post by dcurrier » Thu Mar 26, 2009 4:37 pm

Thanks Yeray.

That worked. I can't believe I didn't try that combination. Haven't looked at it for a while. Plus I'm getting old!

David

Post Reply