+1 888 340 6572

SessionLastBar: Difference between revisions

From MultiCharts
(Created page with "Returns a logical value indicating whether the current bar is the last bar of the session; returns a value of True if the current bar is the last bar of the session, and a...")
 
Line 2: Line 2:
   
   
==== Usage ====
==== Usage ====
[[SessionLastBar]]
<syntaxhighlight>SessionLastBar</syntaxhighlight>
 
==== Example ====
==== Example ====
Assign a true/false value, indicating whether the current bar is the last bar on the chart, to LastBar variable:  
Assign a true/false value, indicating whether the current bar is the last bar on the chart, to LastBar variable:  

Revision as of 12:21, 20 January 2012

Returns a logical value indicating whether the current bar is the last bar of the session; returns a value of True if the current bar is the last bar of the session, and a value of False if the current bar is not the last bar of the session.

Usage

SessionLastBar

Example

Assign a true/false value, indicating whether the current bar is the last bar on the chart, to LastBar variable:

Variable:LastBar(False); 
LastBar=SessionLastBar;