Hi, I’m having trouble getting a screener to display stocks where the negative volume index crosses over a moving average of the negative volume index, could anybody advise why this returns zero results?
indicator1 = NegativeVolumeIndex(close)
indicator2 = Average[255](NegativeVolumeIndex(close))
c1 = (indicator1 >= indicator2)
c2 = (indicator1[1] < indicator2[1])
c3 = (indicator1[2] < indicator2[2])
c4 = (indicator1[3] < indicator2[3])
c5 = (indicator1[4] < indicator2[4])
SCREENER[c1 AND (c2 OR c3 OR c4 OR c5)] (Variation AS "%Chg prev bar")
Thanks Pete
ProScreener has a 254-period limit, so lowering 255 to 250 (because you are referencing the 4th previous candle at line 8) or a bit less should do.
Many thanks for the help Roberto, thats fixed it
Pete