hh:=ref(hhv(high,3),1);
ll:=ref(llv(low,3),1);
oo:=valuewhen(day<>ref(day,1),open);
upcond:=ref(all(isup,3),1) and ref(high,1)=hh and ref(low,3)=ll and hh-ll>=oo*0.005;
downcond:=ref(all(isdown,3),1) and ref(low,1)=ll and ref(high,3)=hh and hh-ll>=oo*0.005;
drawicon(upcond,hh,10);
drawicon(downcond,ll,11);