SessionCount

From MultiCharts
Jump to navigation Jump to search

Returns the number of sessions for the trading week.

Usage

SessionCount(SessionType);

Where: SessionType - a numerical expression: 0 = Auto Detect, 1 = Regular Session*


* Custom Sessions parameters will be used if selected in QuoteManager.

Example

In this example, we have assigned to Value 1 the total number of sessions for the week in the current bar.

Value1 = SessionCount(0);

In this example, we have assigned to Value 1 the total number of regular sessions for the week in the current bar.

Value1 = SessionCount(1);