×

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

SessionLastBar

17 bytes added, 12:14, 19 February 2012
no edit summary
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 ====
<syntaxhighlight>SessionLastBar</syntaxhighlight>
==== Example ====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>
<syntaxhighlight>Variable: LastBar(False);
LastBar = SessionLastBar;</syntaxhighlight>
[[Category:Data Information/General]]