price

Syntax

input <input name>=<price_value_used_by_default>;

Description

Defines a price input. Valid parameters for the price type are:

Example

input price = close;

plot EMA = ExpAverage(price, 10);

Draws the EMA with the length equal to 10. The type of price data can be adjusted using the correspondent input, which is set to "close" by default.