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
thank you!
Do you know how i can specify it to only look for the past n days?
For the last N days replace the last line with this one. You may want to replace 10 with a lookback period of your choice:
SCREENER[summation[10](Cond)]