ヒストリカル・バーの売買高のコレクション
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");
}