不是很理解你的意思。建议你举一个具体的例子。上面表述中,(不确定几根K线的也无所谓)这个没法做,必须给出具体量,否者计算机没法计算。
VARIABLE:hct:=0,lct:=0,bg:=0; hmark:=0; lmark:=0; hcount:count(h>ref(h,1),0);//总的h>ref(h,1)的次数 lcount:count(l<ref(l,1),0); if h>ref(h,1) and bg>=0 then hct:=hct+1; if l<ref(l,1) and bg<=0 then lct:=lct+1; if hct>=10 then //每满足大于10次重置一次,并且开始反向统计 begin hmark:=1; hct:=0; bg:=-1; end if lct>=10 then //每满足大于10次重置一次,且开始反向统计 begin lmark:=1; lct:=0; bg:=1; end cond1:=hmark(high,0)>between(hmark,lmark); cond2:=lmark(low,0)<between(hmark,lmark); cond3:=close>hmark(high,0); cond4:=close<lmark(low,0); DRAWICON(hmark and con1,h,1);//a1 笑脸 |