以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://222.73.7.161/bbs/index.asp) -- 交易策略发布专区 (http://222.73.7.161/bbs/list.asp?boardid=10) ---- [交易系统]趋势跟踪 (http://222.73.7.161/bbs/dispbbs.asp?boardid=10&id=5498) |
-- 作者:z7c9 -- 发布时间:2011/3/12 8:59:23 -- [交易系统]趋势跟踪
input:period(60,5,120,5); variable:stopline=0; topband:=ref(hhv(high,period),1)+mindiff; atr:=ref(ma(tr,length),1); trailingstopnum:=trimprice(trailingstop*atr); if holding=0 then begin if holding>0 then begin partline(holding>0 and enterbars>=2,stopline,coloryellow,1); 盈亏:asset,noaxis,colormagenta; [此贴子已经被作者于2011-10-3 11:22:26编辑过]
|
-- 作者:a7777 -- 发布时间:2013/1/29 21:14:54 -- ![]() |