Rss & SiteMap

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

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

标题:盈利大于10点后,回撤50%止盈,怎么写?

1楼
qq代人发帖 发表于:2014/4/2 13:38:13
请教:我想给我的模型里加上这样一句话,是盈利大于10点后,回撤50%止盈,怎么写?
2楼
jinzhe 发表于:2014/4/2 13:52:15

if holding>0 and hhv(h,enterbars+1)>enterprice+10*mindiff and (h-enterprice)<=(hhv(h,enterbars+1)-enterprice)*0.5 then sell(1,0,makret);

if holding<0 and llv(l,enterbars+1)<enterprice+10*mindiff and (enterprice-l)<=(enterprice-llv(h,enterbars+1))*0.5 then sellshort(1,0,market);

共2 条记录, 每页显示 10 条, 页签: [1]


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