|
var:YM(0),counter(0),D1Open(0),D1Close(0),D1High(0),D1Low(0);
YM=year(d)+month(d)/100;
if d>d[1] then begin
if YM>YM[1] then begin
counter=1;
end else begin
counter=counter+1;
end;
if counter=2 then begin
D1Open=opend(1);
D1Close=closed(1);
D1High=highd(1);
D1Low=lowD(1);
print(D1Close);
end;
end;
if counter>=2 then begin
開始交易,巴啦叭啦的
end;
|
|