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