The currently selected bar interval for the chart that owns this class

Visual Basic |
Public ReadOnly Property BarInterval As TimeSpan

Returns a .net TimeSpan object


Example. Determine the bar interval of our chart
CopyVB.NET

If me.BarInterval.Days > 0 then ' Daily or higher timeframe Select Case me.TimeFrame.TotalDays Case 1 ' Daily Chart Case 2 ' 2 Day Chart end Select else Select case me.BarInterval.TotalMinutes Case 1 ' 1 Minute Chart Case 2 ' 2 Minute Chart end select end if