//周期建议10秒 15秒 20秒 30秒 1分
ab0:zig(3,0.12);
ab1:="2分.ab2#min2";//2分指标是ab2:zig(4,0.2)
ab2:="5分.ab5#min5";//5分指标是ab5:zig(4,0.2)
ab3:=ref(ab1,1)<ab1;
ab4:=ref(ab1,1)>ab1;
ab5:=ref(ab2,1)<ab2;
ab6:=ref(ab2,1)>ab2;
ab7:=ref(zig(3,n),2)>=ref(zig(3,n),1) and zig(3,n)>ref(zig(3,n),1);
ab8:=ref(zig(3,n),2)<=ref(zig(3,n),1) and zig(3,n)<ref(zig(3,n),1);
if ab7 then
begin
sellshort(holding<0,0,limitr,c);
buy(holding=0 and ab3 and ab5 ,1,limitr,c);
end
if ab8 then
begin
sell(holding>0,0,limitr,c);
buyshort(holding=0 and ab4 and ab6,1,limitr,c);
end
{收盘前清仓}
if time>=151500 then
begin
sellshort(holding<0,1,thisclose);
sell(holding>0,1,thisclose);
end
盈亏:asset-1000000,noaxis,colorred,linethick1;
塔友们无论是高手还是新手请评论、添加、去除、修改、完善谢谢!
哦,忘记了,n缺省是0.12
我是新手啊?请问有未来函数的系统还能用吗?信号能固定吗