variable:x(0);//適用於1分鐘線
variable:count(0);
variable:count(0);
value2=timevalue(time,"h");
value3=timevalue(time,"m");
value4=(value2-9)*60+value3;
for x=1 to value4
begin
if
close[x]<=open and high[x]/open[x]<=1.005 and close[x]/low[x]<=1.005
and high[x]<=high[x+1] and low[x]<=low[x+1]
then count=count+1;
end;
if date<>date[1] and time>090500 and count=value4
then ret=1;
value3=timevalue(time,"m");
value4=(value2-9)*60+value3;
for x=1 to value4
begin
if
close[x]<=open and high[x]/open[x]<=1.005 and close[x]/low[x]<=1.005
and high[x]<=high[x+1] and low[x]<=low[x+1]
then count=count+1;
end;
if date<>date[1] and time>090500 and count=value4
then ret=1;
沒有留言:
張貼留言