SessionCount

From MultiCharts
Revision as of 12:14, 24 January 2012 by 194.84.116.138 (talk) (Created page with "Returns the number of sessions for the trading week. ==== Usage ==== <syntaxhighlight>SessionCount(SessionType);</syntaxhighlight> Where: SessionType - a numerical ex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);