NinjaScript > Language Reference > Indicator >

PriceType

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Type of price data such as open, high, low, etc...

 

Property Value

This property returns a PriceType value of either:

 

PriceType.Close

PriceType.High

PriceType.Low

PriceType.Median

PriceType.Open

PriceType.Typical

 

Syntax

PriceType

 

 

Examples

// Initialize method of a custom indicator
protected override void Initialize()
{
    Add(new Plot(Color.Orange, "SMA"));
    PriceType = PriceType.High; // Indicator will use high prices for calculations
}