1.本周期内高点刷新。 K=1时说明当前K范围内最高价有变动。只对最新K起作用。
VARIABLE:m=0;
variable:k=0;
VARIABLE:ct[1]=0;
k:=0;
s:=hhv(h,1);
if ct[1]<>time then
begin
ct[1]:=time;
m:=s;
end
if m<high and ISLASTBAR then begin m:=high; k:=1;end
2.整点前10s平仓
参照: http://www.weistock.com/bbs/dispbbs.asp?boardid=10&Id=9439 第八条