Rss & SiteMap

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

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

标题:日线操作周期:

1楼
qq代人发帖 发表于:2015/7/22 15:06:24
日线操作周期:
当某天最高价突破近10日最高价,该日为突破日。
在未来的三日内,价格跌破向上突破日的最低价,可短线做空;止损位定在近三天的最高价,出场位定在最低价突破10日最低价,该策略如何编写?
2楼
jinzhe 发表于:2015/7/22 15:09:16

nn:=barslast(h=hhv(h,10));

if nn<=3 and nn>0 and c>ref(l,nn) then buyshort(holding=0,1,market);

 

if c>=hhv(h,3) and holding<0 then sellshort(1,0,market);

 

if l<=llv(l,10) and holding<0 then sellshort(1,0,market);

 

使用走完k线模式下单

 

 

3楼
uime 发表于:2015/7/22 15:26:24
止损位定在近三天的最高价
这个没有体现吧
4楼
jinzhe 发表于:2015/7/22 15:30:24

if c>=hhv(h,3) and holding<0 then sellshort(1,0,market);

 

这句是

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


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