以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 移动止盈怎么写 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=69419) |
-- 作者:q878555 -- 发布时间:2014/8/30 14:01:02 -- 移动止盈怎么写 盈利达到0.5%后最大盈利回跌n%怎么写,求教高手,谢谢 |
-- 作者:q878555 -- 发布时间:2014/8/30 20:15:32 -- 盈利达到0.5%后最大盈利回跌n%止盈该怎么写,求教高手,谢谢 |
-- 作者:pyd -- 发布时间:2014/8/31 10:37:06 -- VARIABLE:x=0,m=0; //多头 hh:=hhv(h,enterbars+1); t1:hh-ENTERPRICE>0.05*enterprice; t2:hh-l>=0.0n*hh; if t1 then x:=1; if x=1 and t2 and holding>0 then begin sell(1,holding,market); x:=0; end //空头 ll:=llv(l,enterbars+1); k1:=enterprice-ll>0.05*enterprice; k2:h-ll>=0.0n*ll; if k1 then m:=1; if m=1 and k2 and holding<0 then begin sellshort(1,holding,market); m:=0; end |
-- 作者:q878555 -- 发布时间:2014/9/1 19:58:33 -- 感谢版主指教 |