以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 简单20日突破做多 固定止损移动止盈哪里不对 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=90162) |
-- 作者:pyfans27 -- 发布时间:2016/1/16 22:15:42 -- 简单20日突破做多 固定止损移动止盈哪里不对 input:x(20,1,100,1); xhigh:=ref(hhv(high,x),1); kd:=high>xhigh and holding<=0; 开多:buy(kd and holding=0, 1,market); if l<enterprice-8 then begin
sell(1,0,market); endl if l<hhv(h,enterbars+1)-20 then begin
sell(1,0,MARKET); end;
|
-- 作者:jinzhe -- 发布时间:2016/1/18 9:40:32 -- input:x(20,1,100,1);
xhigh:=ref(hhv(high,x),1);
kd:=high>xhigh and holding<=0;
开多:buy(kd and holding=0, 1,market);
if l<enterprice-8 then
begin
sell(1,0,market);
end
if l<hhv(h,enterbars+1)-20 then
begin
sell(1,0,MARKET);
end;
意思是编译没通过吗?上面改了后可以了
|