Guest User | Sign In

Knowledge Base

LAST() Function

The LAST() function will return the current value of a price bar (closing value by default) or indicator (see also FIRST() function).

If you apply a Show Plot with just LAST() as the formula by default it will plot a horizontal line at the last closing price. Change the formula to LAST(HIGH()) to plot at the last high value.

This example compares Show Plot with LAST(HIGH()) in blue vs HIGH() in green. Similarly, if LAST() Show Plot is applied to an indicator, eg the Relative Index Comparison tool it will draw the last value across the screen:


For more examples using LAST() with BARDATE() see this forum post.

Please Wait!

Please wait... it will take a second!