基于成交量来切分bar的函数

有没有基于成交量来切分bar的函数,基于tick数据,每1000一根bar

请先 登录 后评论

1 个回答

peter
可以使用volumeBar函数


 first(price) as openPrice
    ,max(price) as highPrice
    ,min(price) as lowPrice
    ,last(price) as closePrice
    ,sum(qty) as totalQty
    ,sum(qty*price) as amount
from t1
group by volumeBar(qty, 1000)
   
请先 登录 后评论
  • 1 关注
  • 0 收藏,482 浏览
  • wfHuang 提出于 2023-08-04 10:05