以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://222.73.7.161/bbs/index.asp)
--  公式模型编写问题提交  (http://222.73.7.161/bbs/list.asp?boardid=4)
----  回撤  (http://222.73.7.161/bbs/dispbbs.asp?boardid=4&id=95582)

--  作者:涅磐重生
--  发布时间:2016/3/31 11:34:57
--  回撤

最新价>持仓均价+10   回撤 3点就平仓   老师示范

 


--  作者:jinzhe
--  发布时间:2016/3/31 13:08:10
--  

if hhv(h,enterbars+1)>=avgenterprice+10 and c<hhv(h,enterbars+1)-3 and holding>0 then sell(1,0,marketr);

if llv(l,enterbars+1)<=avgenterprice-10 and c>llv(l,enterbars+1)+3 and holding<0 then sellshort(1,0,marketr);