可以用高阶函数moving实现,moving用法参考https://dolphindb.cn/cn/help/Functionalprogramming/TemplateFunctions/moving.html
select *,moving(std, (fixedLengthArrayVector(close,high,low,open)),5) as std from t
可以用高阶函数moving实现,moving用法参考https://dolphindb.cn/cn/help/Functionalprogramming/TemplateFunctions/moving.html
select *,moving(std, (fixedLengthArrayVector(close,high,low,open)),5) as std from t