以文本方式查看主题

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

--  作者:songsongl
--  发布时间:2014/12/29 15:55:13
--  移动止赢
老师,图表交易,逐k线模式下,10个点的移动止损止赢怎么编写。
--  作者:jinzhe
--  发布时间:2014/12/29 16:00:22
--  

if holding>0 and l<=hhv(h,enterbars+1)-10 then sell(1,0,market);//多头

if holding<0 and h>=llv(l,enterbars+1)+10 then sellshort(1,0,market);//空头