以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 日线操作周期: (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=81524) |
-- 作者:qq代人发帖 -- 发布时间:2015/7/22 15:06:24 -- 日线操作周期: 日线操作周期: 当某天最高价突破近10日最高价,该日为突破日。 在未来的三日内,价格跌破向上突破日的最低价,可短线做空;止损位定在近三天的最高价,出场位定在最低价突破10日最低价,该策略如何编写? |
-- 作者: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线模式下单
|
-- 作者:uime -- 发布时间:2015/7/22 15:26:24 -- 止损位定在近三天的最高价 这个没有体现吧
|
-- 作者:jinzhe -- 发布时间:2015/7/22 15:30:24 -- if c>=hhv(h,3) and holding<0 then sellshort(1,0,market);
这句是 |