以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 要不要加括号 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=6220) |
-- 作者:厦门股指期货 -- 发布时间:2011/4/19 22:30:13 -- 要不要加括号 if a and b or c and d then begin buy(holding=0,1,thisclose); end 意思想在满足a and b 或者c and d 时开多。 以上表达对不对,要不要在a and b与c and d加上括号 |
-- 作者:guotx2010 -- 发布时间:2011/4/19 22:37:37 -- 要加上括号 if (a and b) or (c and d) then begin buy(holding=0,1,thisclose); end |