如何在rse中计算近10条数据相同个数

如何在reactiveEngine中计算在过去十行中 多少行的值和当前行一样

请先 登录 后评论

1 个回答

wfHuang

defg ncount(x){

    return sum(x == x.tail())

}

设定指标:

metrics =[<time>, <moving(ncount, price, 10)>]

请先 登录 后评论