SessionFirstBarTime (Function)

image\trumpet2.gif Disclaimer

The SessionFirstbarTime function returns the time of the first bar for the specified session.

Syntax

SessionFirstbarTime(SessionType,SessionNum);

Returns (Integer)

A numeric value for the current bar.

Parameters

Name

Type

Description

SessionType

Numeric

Sets the type of session to reference. 0 = Auto Detect, 1 = Regular Session

SessionNum

Numeric

Sets the session number to reference.

Remarks

The input parameter SessionType specifies the type of session information that should be returned. The type parameter may be specified as follows: Auto-Detect Session – [0, AutoSession] - uses whatever session is specified for the data series; regular or custom, or Regular Session – [1, RegularSession] - regular session information should always be returned. The input parameter SessionNum specifies the specific session number to be returned. This value ranges from 1 to the maximum number of sessions.

Examples

Assigns to Value1 the time of the first bar for the specified session:

Value1 = SessionFirstbarTime (0,3);