×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

SessionCount

699 bytes added, 12:14, 24 January 2012
Created page with "Returns the number of sessions for the trading week. ==== Usage ==== <syntaxhighlight>SessionCount(SessionType);</syntaxhighlight> Where: SessionType - a numerical ex..."
Returns the number of sessions for the trading week.

==== Usage ====
<syntaxhighlight>SessionCount(SessionType);</syntaxhighlight>

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.

<syntaxhighlight>Value1 = SessionCount(0);</syntaxhighlight>

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

<syntaxhighlight>Value1 = SessionCount(1);</syntaxhighlight>

[[Category:Sessions]]
Anonymous user