如何获取K线收盘时间
作者:金字塔 来源:cxh99.com 发布时间:2021年08月24日
-
咨询内容:
如何获取K线收盘时间
-
金字塔客服:
有现成的函数的。CLOSETIME 函数就是的了。
返回交易所的指定时段的收盘时间
用法:CLOSETIME(N),N表示对应市场分类中交易所交易时间设置的节数(自上而下),特设0表示最后一节的节数(即日收盘的节数)
函数返回有效值范围为(000000-235959),此函数返回常数,对于日线及更长周期此函数无效。
例:
中金所 closetime(1)返回值为113000 closetime(2)返回值为151500
夜盘市场北京时区
closetime(1)返回值为023000 closetime(2)返回值为101500
closetime(3)返回值为113000 closetime(4)返回值为150000
夜盘市场 金字塔时区
closetime(1)返回值为063000 closetime(2)返回值为141500
closetime(3)返回值为153000 closetime(4)返回值为190000
所属函数组:常数函数