以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 怎样实现平仓即反手? (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=78250) |
-- 作者:onmidas -- 发布时间:2015/5/5 8:46:15 -- 怎样实现平仓即反手? 在同一根k线上平仓反手,怎么实现? |
-- 作者:jinzhe -- 发布时间:2015/5/5 8:49:00 -- if 开多条件 then begin sellshort(1,0,market); buy(holding=0,1,market); end
if 开空条件 then begin sell(1,0,market); buyshort(holding=0,1,market); end
|