High

View as Markdown

Definition

A collection of historical bar high prices.

Property Value

An ISeries\<double\> type object. Accessing this property via an index value int barsAgo returns A double value representing the price of the referenced bar.

Syntax

High

High[int barsAgo]

Examples

1// OnBarUpdate method
2protected override void OnBarUpdate()
3{
4 // Make sure we have at least 20 bars
5 if (CurrentBar < 20)
6 return;
7
8 // Evaluates for higher highs
9 if (High[0] > High[1] && High[1] > High[2])
10 Print("Two successive higher highs");
11
12 // Gets the current value of a 20 period SMA of high prices
13 double value = SMA(High, 20)[0];
14 Print("The value is " + value.ToString());
15}

\