以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 买卖指令是一定要按照这个吗? (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=60570) |
-- 作者:qq代人发帖 -- 发布时间:2014/1/2 17:11:28 -- 买卖指令是一定要按照这个吗? 请教:买卖指令是一定要按照
平空 开多 平多 开空 来写的吗,怎么在系统公式 顾比倒数线策略 里面有 if holding=0 then begin if tmp<=0 then buy(1,1,limitr,close); end if holding=0 then begin if tmp>0 then buyshort(1,1,limitr,close); end if holding>0 then begin if tmp>0 then begin sell(1,holding,limitr,close); buyshort(1,1,limitr,close); end end if holding<0 then begin if tmp<=0 then begin sellshort(1,holding,limitr,close); buy(1,1,limitr,close); end end 这个顺序和你们要求的不一样啊 |
-- 作者:jinzhe -- 发布时间:2014/1/2 17:19:44 -- 如果不加if之类的,那么一定要按照上面的顺序写 如果加了,可以不用按照顺序写 |