Rss & SiteMap

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

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

标题:简单20日突破做多 固定止损移动止盈哪里不对

1楼
pyfans27 发表于:2016/1/16 22:15:42
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;
2楼
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;
意思是编译没通过吗?上面改了后可以了
共2 条记录, 每页显示 10 条, 页签: [1]


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