LastSessionMS (Function)
The LastSessionMS function returns the session number of the last session of the specified day, based on the merged sessions in a multi-data chart.
MS - Merged sessions are from the earliest start time of all symbols to the latest end time for all sessions each trading day.
Syntax
LastSessionMS(XDay);
Returns (Integer)
A numeric value for the current bar.
Parameters
|
Name |
Type |
Description |
|
XDay |
Numeric |
Sets the day of the week to be evaluated 0=Sunday, 1=Monday, etc. |
Remarks
The input parameter XDay specifies the day of the week that should be evaluated for the Last session number. 0 = Sunday, 1 = Monday, 2 = Tuesday, etc.
Examples
Assigns to Value1 the last session number of all merged sessions for Wednesday:
Value1 = LastSessionMS (3);