以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请教自动化平仓 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=91272) |
-- 作者:c100010292 -- 发布时间:2016/2/18 15:15:46 -- 请教自动化平仓 请教一下老师,标准版的获利回吐20%自动化平仓怎么编程 |
-- 作者:jinzhe -- 发布时间:2016/2/18 15:19:37 -- 多头: if enterbars>0 and holding>0 and openprofit<=hhv(openprofit,enterbars+1)*0.8 then sell(1,0,marketr); 空头: if enterbars>0 and holding<0 and openprofit<=hhv(openprofit,enterbars+1)*0.8 then sellshort(1,0,marketr);
|
-- 作者:c100010292 -- 发布时间:2016/2/18 15:29:27 -- 谢谢你 |