- 精华
- 0
- 在线时间
- 10 小时
- UID
- 917078
- 积分
- 8
- 帖子
- 5
- 阅读权限
- 10
- 注册时间
- 2021-4-11
- 最后登录
- 2021-6-5
- 精华
- 0
- UID
- 917078
- 积分
- 8
- 帖子
- 5
- 主题
- 3
- 阅读权限
- 10
- 注册时间
- 2021-4-11
- 最后登录
- 2021-6-5
|
Params
Vars
Array<Numeric> a;
Series<Numeric> i;
Events
OnBar(ArrayRef<Integer> indexs)
{
if(OPEN>CLOSE)
{
a[i] = Close;
i=i+1;
}
Commentary("i值为"+Text(i));
Commentary("当前数组接收值为"+Text(a[i-1]));
Commentary("i-2号数组接收值为"+Text(a[i-2]));
}
当前数组值可以输出,i-2号 之前的数组就无法调取到 |
|