交易所交易时间没有结束,分钟K图中最新一根棒的todaybar不再増加,
并且time<=closetime(0)并且time不再增加。
请问客服老师怎么写?
timetot0(currenttime)<=timetot0(closetime(0)) and timetot0(currenttime)>time0-60 and date=currentdate
以下是引用jinzhe在2016-10-28 9:25:51的发言:
timetot0(currenttime)<=timetot0(closetime(0)) and timetot0(currenttime)>time0-60 and date=currentdate
老师,上面减60是对应的1分钟K线吧,我希望能分钟K通用之公式,请修改下。谢谢
通过DATATYPE的读取,然后转化成对应分钟数或秒数。
这样的思路可否把上面公式写成通用之公式呢。
那也是要枚举的
if datatype=1 then n:=60;
if datatype=2 then n:=60*5;
if datatype=3 then n:=60*15;
.....而且还不能判断多分钟周期
timetot0(currenttime)<=timetot0(closetime(0)) and timetot0(currenttime)>time0-n and date=currentdate