Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:请教利润回撤50%平仓的编写

1楼
四季长安 发表于:2016/8/18 8:09:32
新手请教,当盈利超过20点后,如果回撤50%就平仓的编写。谢谢
2楼
jinzhe 发表于:2016/8/18 9:12:56

if holding>0 and hhv(h,enterbars+1)>enterprice+20 and enterbars>0 and openprofit<=hhv(openprofit,enterbars+1)*0.5 then sell(1,0,market);

if holding<0 and llv(l,enterbars+1)<enterprice-20 and enterbars>0 and openprofit<=hhv(openprofit,enterbars+1)*0.5 then sellshort(1,0,market);

3楼
四季长安 发表于:2016/8/18 18:14:33
谢谢
共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01563 s, 3 queries.