{价格区间交易系统}
tj1:=high>ref(close,1);tj2:=ref(close,1)>low;
if tj1 then
fz:=high-ref(close,1)+(close-low);
else fz:=close-low;
if tj2 then
fm:=ref(close,1)-low+(high-close);
else fm:=high-close;
td8:sum(fz,8)/sum(fm+fz,8)*100,linethick3;
{以上为技术指标部分)}
count("td2.td8"<40,7)=7;