+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...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
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.  
Returns a logical value indicating whether the current bar is the last bar of the session.
 
==== Usage ====
SessionLastBar 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.  
[[SessionLastBar]]
   
   
==== Example ====
== Usage ==
Assign a true/false value, indicating whether the current bar is the last bar on the chart, to LastBar variable:
<syntaxhighlight>SessionLastBar</syntaxhighlight>


<syntaxhighlight>Variable:LastBar(False);
== Example ==
LastBar=SessionLastBar;</syntaxhighlight>
Assign a true/false value, indicating whether the current bar is the last bar on the chart, to the ''LastBar'' variable:


<syntaxhighlight>Variable: LastBar(False);


LastBar = SessionLastBar;</syntaxhighlight>


[[Category:Data Information/General]]
[[Category:Data Information/General]]

Latest revision as of 12:14, 19 February 2012

Returns a logical value indicating whether the current bar is the last bar of the session.

SessionLastBar 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 the LastBar variable:

Variable: LastBar(False); 

LastBar = SessionLastBar;