以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 本次建仓价大于上次建仓价卖 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=66771) |
-- 作者:FexTel -- 发布时间:2014/6/30 15:16:28 -- 双向还是多头单向? |
-- 作者:qq代人发帖 -- 发布时间:2014/6/30 15:46:41 -- p1:enterprice>ref(ENTERPRICE,enterbars+2); if p1 THEN begin sell(holding>0,holding,market); buyshort(holding=0,1,market); end k1:enterprice<ref(ENTERPRICE,enterbars+2); if k1 THEN begin buy(holding=0,1,market); sellshort(holding<0,holding,market); end [此贴子已经被作者于2014/6/30 15:48:28编辑过]
|