Changes
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]]
==== 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]]