ヒストリカル・バーの終値のコレクション
DataSeries型のオブジェクト。インデックス値[ int barsAgo ]を通してこのプロパティにアクセスすると、参照されたバーの価格を表すdouble型の値が返される。
Close
Close[
int
barsAgo
]
// OnBarUpdate method
protected override void OnBarUpdate()
{
// Checks if the current close is greater than the prior bar close
if (Close[0] > Close[1])
Print("We had an up day");
}