Bar Index (BarIdx and BarIx)

This function is available on the Add Study window (BarIdx) and in the Formula Toolbox (BarIx).

Bar Index displays the number of bars, of the designated interval, which have occurred up to the selected time for a particular day. For example, each day at 2:30, on a 30-minute S&P 500 bar chart, the Bar Index shows a value of 12, indicating there have been 12 30-minute bars up to that time.

Example: BarIx(@,StartOfDay)

 

Parameter

Description

Reference

Selects the reference point of the bar indexing. Values:

Start of Day = number of bars since the start of trading day

End of Day = number of bars left in trading day

Start of Session = number of bars since start of session

End of Session = number of bars left in session

Display

Opens a sub-window with display properties:

      Color = Select a line color.

      Weight = Type a value for line thickness.

      Display = Select line style: line, histogram, or dash.

      ShareScale = Assign a behavior for functions and studies sharing the vertical scale:

      Auto = System determine whether sharing is feasible.

      On = Scale is shared regardless of the functions and studies displayed.

      Off = Scale is not shared.

MarkIt

Opens the Specify Conditions for Marking Bar window.

OB/OS

Opens a sub-window with properties for overbought and oversold indicators.

      Color = Select a line color.

      Weight = Type a value for line thickness.

      Type = Select fixed or dynamic.

      Std Dev = Choose a multiplier of the Standard Deviation used to derive high and low.

      Lookback = Choose the number of bars that should be compared to the current bar.

      Level = Assign a percentage value of average OB/OS to be used to calculate predictor OB/OS levels.

      Display = Click this check box to display the line on the chart.

      Style = Choose a line style: line, long dash, or short dash.