High

定義

ヒストリカル・バーの高値のコレクション

プロパティ値

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());
}
最終更新:2014年06月10日 00:11