FirstSessionMS (Function)
The FirstSessionMS function returns the session number of the first 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
FirstSessionMS(XDay);
Returns (Integer)
A numeric value for the current bar.
Parameters
|
Name |
Type |
Description |
|
XDay |
Numeric |
Sets the day of the week that should be evaluated. 0=Sunday, 1=Monday, etc. |
Examples
Assigns to Value1 the first session number of all merged sessions for Wednesday:
Value1 = FirstSessionMS(3);