sma20= AVERAGE[20](Close) sma50 = AVERAGE[50](Close) RSI8=RSI[8](Close) RSI14=RSI[14](Close) c1 = sma20 > sma50 c2 = RSI[8] > 70 c2 = RSI[14] > 70 Cond = c1 AND c2 AND c3 SCREENER[Cond] Trying to get this simple code to work and it wont 2 questions: Whats wrong with the code? How can I make it apply to the stocks where these conditions have been met in the last n days? Many thanks for your help