Rss & SiteMap

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

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

标题:请教自动化平仓

1楼
c100010292 发表于:2016/2/18 15:15:46
请教一下老师,标准版的获利回吐20%自动化平仓怎么编程
2楼
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);

 

3楼
c100010292 发表于:2016/2/18 15:29:27
谢谢你
共3 条记录, 每页显示 10 条, 页签: [1]


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