以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://weistock.com/bbs/list.asp?boardid=2)
----  表达式计算的优化问题  (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=85370)

--  作者:lance0307
--  发布时间:2015/9/18 12:52:33
--  表达式计算的优化问题
你好
请问金字塔对表达式的解释是从左到右的顺序吗?

Par1:=todaybarcount<=1 and MACD>0 and count(MACD<-6,30)<=0;

Par2:=count(MACD<-6,30)<=0 and todaybarcount<=1 and MACD>0;

如上这2个表达式的写法

我想知道金字塔在解释Par1时,如果todaybarcount<=1不满足是否后面的and条件就不会再去计算了

如果这样的话,Par1的写法优于Par2



--  作者:十世
--  发布时间:2015/9/18 13:08:12
--  
是的,Par1的写法优于Par2