如何遍历 Series<Numeric> x 序列每个值?

如何遍历  Series<Numeric> x 序列每个值?


for i = 0 to currentbar
{
    x[i];
}