以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 求助 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=13349) |
-- 作者:三朱一树 -- 发布时间:2012/7/29 12:57:12 -- 求助 if time>09300 and time<144500 then begin if 条件 then begin
if 条件2 then begin end
另外这样: sj:=time>09300 and time<144500 then
if 条件 and sj then begin if 条件2 and sj then begin
条件是一样的,为什么测试时,开仓的次数不一样,后者少了几十次,求解。
|
-- 作者:RogarZ -- 发布时间:2012/7/29 13:29:01 -- 条件不一样啊~ 你第二个 “if 条件 and sj then ” 需要“条件”和"sj"同时成立,当然次数会变少 |
-- 作者:三朱一树 -- 发布时间:2012/7/29 13:36:22 -- 呵呵!谢谢! |