以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 止盈 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=141633) |
-- 作者:tanyongde -- 发布时间:2016/10/21 15:09:52 -- 止盈 海龟交易模型怎样实现时间和盈利止盈? if enterbars>10 then bein sell( _debug ,0,limitr,myexitprice)ignorecheckprice; sellshort( _debug ,0,limitr,myexitprice)ignorecheckprice; end if 现在资产>=开仓资产+5000 then bein sell( _debug ,0,limitr,myexitprice)ignorecheckprice; sellshort( _debug ,0,limitr,myexitprice)ignorecheckprice; end 按上面编写好像不行,应该怎样写?
|
-- 作者:jinzhe -- 发布时间:2016/10/21 15:13:47 -- 看字面意思是对的,你上面哪一段不行? |
-- 作者:tanyongde -- 发布时间:2016/10/21 15:22:41 -- 按上面条件改正过来好吗? |
-- 作者:jinzhe -- 发布时间:2016/10/21 15:28:30 -- if enterbars>10 then bein sell( _debug ,0,limitr,myexitprice)ignorecheckprice;
sellshort( _debug ,0,limitr,myexitprice)ignorecheckprice;
end
if openprofit>=5000 then bein
sell( _debug ,0,limitr,myexitprice)ignorecheckprice;
sellshort( _debug ,0,limitr,myexitprice)ignorecheckprice;
end |