23 Star 107 Fork 36

浙江智臾科技有限公司 / Tutorials_CN

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
当日尾盘成交占比.txt 377 Bytes
一键复制 编辑 原始数据 按行查看 历史
def beforeClosingVolumePercent(TradeTime, TradeQty){
return sum(TradeQty*(time(TradeTime) between 14:30:00.000 : 15:00:00.000)) \ sum(TradeQty)
}
timer{
tradeTB = loadTable("dfs://TL_Level2", "trade")
res = select beforeClosingVolumePercent(TradeTime, TradeQty) as BCVP
from tradeTB
where date(TradeTime)=2023.02.01
group by date(TradeTime) as TradeDate, SecurityID
}
1
https://gitee.com/dolphindb/Tutorials_CN.git
git@gitee.com:dolphindb/Tutorials_CN.git
dolphindb
Tutorials_CN
Tutorials_CN
master

搜索帮助