n:=7;tr1:=sma(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),n,1);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sma(if(hd>0 and hd>ld,hd,0),n,1);dmm:=sma(if(ld>0 and ld>hd,...
aa:=close>=ref(low,1) and close>=ref(low,2); {当日收盘大于或等于昨天,前天的收盘价}bb:=last(range(close/ref(close,1),0.97,1.03),4,0);{连续4天内的涨跌幅度在+/-3%内,如果觉得4天不合适,你可以自己调整里面的天数』cc:=range(close/ref(close,4),0.97,1.03);{当天...