以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 开盘至当前的时间如何表达? (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=61895) |
-- 作者:雪球 -- 发布时间:2014/2/21 14:02:19 -- 开盘至当前的时间如何表达? 请问老师螺纹钢日K线今日开盘至当前的时间如何表达? |
-- 作者:jinzhe -- 发布时间:2014/2/21 14:05:27 -- 到当前有几小时几分几秒这样的? |
-- 作者:雪球 -- 发布时间:2014/2/21 14:12:39 -- 多少秒吧 |
-- 作者:jinzhe -- 发布时间:2014/2/21 14:24:37 -- timetot0(dynainfo(207))-timetot0(091500) |
-- 作者:雪球 -- 发布时间:2014/2/21 14:32:52 -- 这个不对,开盘时间9:00:00,还有closetime(1)至open time(2)有休市15分钟要扣除,还有中中午休息要剔除的呀 |
-- 作者:jinzhe -- 发布时间:2014/2/21 14:43:54 -- 那这个就不能笼统计算了, 比如你这个那么就要列好几个判断式: if dynainfo(207)<=103000 then nn:=timetot0(dynainfo(207))-timetot0(091500); if dynainfo(207)<=113000 and dynainfo(207)>=104500 then nn:=timetot0(dynainfo(207))-timetot0(091500)-15*60; if dynainfo(207)<=150000 and dynainfo(207)>=133000 then nn:=timetot0(dynainfo(207))-timetot0(091500)-15*60-2*60*60; |
-- 作者:雪球 -- 发布时间:2014/2/21 15:04:01 -- 谢谢老师,确实比较复杂。金字塔直接函数有吗? |
-- 作者:jinzhe -- 发布时间:2014/2/21 15:07:05 -- 没有这个函数所以我才写了这么多 [此贴子已经被作者于2014/2/21 15:07:15编辑过]
|
-- 作者:雪球 -- 发布时间:2014/2/21 15:54:47 -- 再次谢谢老师 |