InputType

Input Type of User Input Variables

Description

Used in the constructor of the script as an argument this.addInput when creating user-entered variables.
Depending on the specified variable type, the script settings dialog is generated

Example

this.addInput("AppliedPrice", InputType.AppliedPrice, AppliedPrice.Close);
this.addInput("Averaging", InputType.Averaging, Averaging.Simple);
this.addInput("PriceType", InputType.PriceType, PriceType.Bid);
this.addInput("Period", InputType.int, 14);
this.addInput("Alpha1", InputType.float, 0.25);

Elements

const
AppliedPrice AppliedPrice AppliedPrice
Averaging MA Averaging Averaging
PriceType PriceType PriceType
PriceType PriceType PriceType
bool Boolean bool
color Color color
datetime DateTime - unix timestamp datetime
enum Enum enum
float Float float
int Integer int
string String string