以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 如何获取固定收益? (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=57591) |
-- 作者:lihuitomo -- 发布时间:2013/10/15 16:11:50 -- 如何获取固定收益? 实现开仓价格获利N个点离场,怎么实现 |
-- 作者:jinzhe -- 发布时间:2013/10/15 16:15:16 -- if holding>0 and h-enterprice>n*mindiff then sell(1,0,market); if holding<0 and enterprice-l>n*mindiff then sellshort(1,0,market); |