SessionCountDay (Function)
The SessionCountDay function returns the number of available complete sessions for the specified day. Complete sessions both start and end during the same day, defined as 12 AM to 11:59 PM.
Syntax
SessionCountDay(SessionType,XDay);
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 |
|
XDay |
Numeric |
Sets the day of the week that should be evaluated. 0=Sunday, 1=Monday, etc. |
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.
Examples
Assigns to Value1 the number of available complete sessions for Wednesday:
Value1 = SessionCountDay(0,3);