I'm using the following code to create a line to designated points on the a candle chart:
.Canvas.LineTo .Axis.Bottom.CalcXPosValue(.Series(0).XValues.Value(pt)), _
.Axis.Left.CalcYPosValue(.Series(0).YValues.Value(pt))
This works great for overlaying a line to the closing value, but I wants to send a line to a high or low value... How would I do that?
creating .canvas.lineto a high or low in a candle chart
Hi,
for the low values you can do this :This works great for overlaying a line to the closing value, but I wants to send a line to a high or low value... How would I do that?
Code: Select all
With TChart1
centery = .Axis.Left.CalcYPosValue(.Series(0).asCandle.LowValues.Value(3))
centerx = .Axis.Bottom.CalcXPosValue(.Series(0).asCandle.DateValues.Value(3))
.Canvas.LineTo centerx, centery
End With
Pep Jorge
http://support.steema.com
http://support.steema.com