PartSessionCountDay (Function)
The PartSessionCountDay function returns the number of partial sessions for the specified day. A partial session is defined as a session that does not start and end on the same day. There can be a maximum of two partial sessions for any given day.
Syntax
PartSessionCountDay(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 partial sessions for Wednesday:
Value1 = PartSessionCountDay(0,3);