选股公式: 过去的9周期内, 同时存在: 至少有两天的最高价相等 和至少有两天的最低价相等
runmode:0;
hh:h;
n:=0;
if barpos>10 then begin
for i=1 to 9 do begin
if hh=hh[barpos-i] then
n:=n+1;
end
end
ll:l;
m:=0;
if barpos>10 then begin
for i=1 to 9 do begin
if ll=ll[barpos-i] then
m:=m+1;
end
end
N是最高价相等的次数,M最低价相等的次数
只要判断N,M是不是大于等于1就行
谢谢! 试试
不能实现 全市场都是了