I want to develop a weekly screener with following conditions. EMA20 cross over EMA50 happened around six months back for the first time in the last two years Close is either very near to EMA[20] or moved below EMA20 only slightly I developed the screener using lot of for loops and some calculations but getting very messy I am just hoping to get some help in doing this relatively easy way please. Thanks in advance.