Page 1 of 1

Question for old program using V6 Tchart and ActiveX

Posted: Tue Mar 24, 2009 5:24 pm
by 9083183
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

Posted: Wed Mar 25, 2009 8:49 am
by yeray
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

Posted: Thu Mar 26, 2009 4:37 pm
by 9083183
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