ヒストリカル・バーの高値のコレクション
DataSeries型のオブジェクト。インデックス値[ int barsAgo ]を通してこのプロパティにアクセスすると、参照されたバーの価格を表すdouble型の値が返される。
High
High[
int
barsAgo
]
// OnBarUpdate method
protected override void OnBarUpdate()
{
// Make sure we have at least 20 bars
if (CurrentBar < 20)
return;
// Checks for higher highs
if (High[0] > High[1] && High[1] > High[2])
Print("Two successive higher highs");
// Gets the current value of a 20 period SMA of high prices
double value = SMA(High, 20)[0];
Print("The value is " + value.ToString());
}