The following code return the mid visible time axis:
Code: Select all
Dim TimeRangeChart As TimeSpan = Environment.RightScreenTime - Environment.LeftScreenTime
Dim MidPointTime As DateTime = Environment.LeftScreenTime.AddSeconds(timeRangeChart.TotalSeconds / 2)
My question is how to translate the MidPointTime value to bar number or how to set New ChartPoint with date value instead of BarsBack?
Thx much,
Cheers,
R.