背离:=(周D涨 AND 月D跌) OR (周D跌 AND 月D涨); 同向:=周D涨 AND 月D涨 AND REF(周D跌,1) AND REF(月D跌,1) AND REF(周D跌,2) AND REF(月D跌,2) AND REF(周D跌,3) AND REF(月D跌,3); XG:背离 OR 同向;