CurrentSession (Function)

image\trumpet2.gif Disclaimer

The CurrentSession function returns the session number of the current bar.

Syntax

CurrentSession(SessionType);

Returns (Integer)

A numeric value for the current bar.

Parameters

Name

Type

Description

SessionType

Numeric

Sets the type of session to reference; 0 = AutoDetect, 1 = Regular session.

Examples

Assigns to Value1 the session number of the current bar in the chart for the regular session:

Value1 = CurrentSession(1);

See Also

CurrentSessionMS