Volume

定義

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

プロパティ値

DataSeries型のオブジェクト。インデックス値[ int barsAgo ]を通してこのプロパティにアクセスすると、参照されたバーの価格を表すdouble型の値が返される。

構文

Volume
Volume[ int barsAgo ]

// OnBarUpdate method
protected override void OnBarUpdate()
{
     // Is current volume greater than twice the prior bar's volume
     if (Volume[0] > Volume[1] * 2)
          Print("We have increased volume");
 
     // Is the current volume greater than the 20 period moving average of volume
     if (Volume[0] > SMA(Volume, 20)[0])
          Print("Increasing volume");
}
最終更新:2014年06月10日 00:16