AppliedPrice

Type of applied price

Description

Used in methods onInit and onUpdate
to set the type of price to be used.

Example

this.addInput("Applied_Price", InputType.AppliedPrice, AppliedPrice.Close);
let list = await Indicators.ADX(Current.Symbol, TimeFrame.Current, 6, AppliedPrice.High, PriceType.Ask);

Elements

const
Close Close price 0
High The maximum price for the period 2
Low The minimum price for the period 3
Median Median price, (high + low)/2 4
Open Open price 1
Typical Typical price, (high + low + close)/3 5
Weighted Weighted close price, (high + low + close + close)/4 6