constant

Syntax

input <input name>=<constant_used_by_default>;

Description

Defines an input expressed by a constant of particular type. For the full list of supported constants, see the Constants section.

Note that color constants cannot be used for input definition.

Example

input secondaryPeriod = AggregationPeriod.DAY;
plot SecondaryPeriodOpen = open(period = secondaryPeriod);

This example script draws the Open price plot with specified aggregation period.