以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://www.weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://www.weistock.com/bbs/list.asp?boardid=4)
----  代码简化  (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=165694)

--  作者:longkun
--  发布时间:2018/9/26 23:12:06
--  代码简化

开盘:=if(time>opentime(1) and time<closetime(1),1,0)=1 or if(time>opentime(2) and time<closetime(2),1,0)=1 or
if(time>opentime(3) and time<closetime(3),1,0)=1 or if(time>opentime(4) and time<closetime(4),1,0)=1;

以上代码能否在格式上帮我简化一下,比如用&符号


--  作者:longkun
--  发布时间:2018/9/26 23:13:22
--  
看看能不能不用if函数
--  作者:wenarm
--  发布时间:2018/9/27 8:21:03
--  

没办法