LAST

Syntax

PriceType.LAST

Description

Use it with Fundamental functions to state that a last price needs to be returned.

Example

input priceType = PriceType.LAST;

plot LastPrice = close(priceType = priceType);

By default, this script returns the close of last price of the currently selected symbol, with the price type customizable via input parameters.