//轮询模式 15分钟周期
variable:jg=0;
p2:=if(islastbar,dynainfo(207),time);
p3:time0-timetot0(p2)linethick0;
if a and p3=120 then begin
jg:=c;
if p3<=60 then
begin
sellshort(1,0,limitr,jg);
buy(1,1,limitr,jg);
end
end
if b and p3=120 then begin
jg:=c;
if p3<60 then
BEGIN
sell(1,0,limitr,jg);
buyshort(1,1,limitr,jg);
end
end
仅供参考