Rss & SiteMap

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

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

标题:[原创]

1楼
苦麻菜真好吃 发表于:2016/5/11 10:22:36

开多仓后,1、设置初始止损为x,

             2、若盈利3atr后将止损上移至保本止损、

              3、若盈利5atr后,回撤3atr平仓止盈、

              4、若盈利N(N>5)atr后、回撤3atr平仓止盈

 

开空仓后,1、设置初始止损为x,

             2、若盈利3atr后将止损上移至保本止损、

              3、若盈利5atr后,回撤3atr平仓止盈、

              4、若盈利N(N>5)atr后、回撤3atr平仓止盈

 

 

 

 

 

2楼
jinzhe 发表于:2016/5/11 10:27:12

初始止损为x

 

是亏损x点还是具体的亏损了x元

3楼
苦麻菜真好吃 发表于:2016/5/11 10:42:29

X是个条件、帮忙写后面就可以了、谢谢老师!

4楼
jinzhe 发表于:2016/5/11 10:45:27

那么atr是点数还是具体的金额?

5楼
苦麻菜真好吃 发表于:2016/5/11 10:56:17
atr也是一个条件
6楼
jinzhe 发表于:2016/5/11 10:57:25

盈利3atr

这里的atr怎么就是一个条件了?

7楼
苦麻菜真好吃 发表于:2016/5/11 11:05:12

就按照点数来用吧

8楼
jinzhe 发表于:2016/5/11 11:11:00
  2、若盈利3atr后将止损上移至保本止损、

              3、若盈利5atr后,回撤3atr平仓止盈、

              4、若盈利N(N>5)atr后、回撤3atr平仓止盈

 

 

if hhv(h,enterbars+1)>enterprice+3*atr and hhv(h,enterbars+1)<enterprice+5*atr and c<enterprice and holding>0 then sell(1,0,marketr);

if hhv(h,enterbars+1)>=enterprice+5*atr and c<hhv(h,enterbars+1)-3*atr and holding>0  then sell(1,0,marketr);

 

if hhv(h,enterbars+1)>enterprice+3*atr and hhv(h,enterbars+1)<enterprice+5*atr and c<enterprice and holding<0 then sellshort(1,0,marketr);

if hhv(h,enterbars+1)>=enterprice+5*atr and c<hhv(h,enterbars+1)-3*atr  and holding<0 then sellshort(1,0,marketr);

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


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