c2 = Close > 5.00
indicator2 = Volume
indicator3 = (Average[20](Volume)) * 1.5
c3 = indicator2 > indicator3
c4 = (average[20] (Volume)) > 200000
indicator4 = Average[40](Close)
indicator5 = Average[120](Close)
c5 = (indicator4 >= indicator5)
indicator6 = (highest[40](high[1]))
c6 = (close >= indicator6)
criteria = volume
SCREENER [c2 AND c3 AND c4 AND c5 and c6] (criteria AS "volume")
What needs to be changed in the above code to turn this into a breakdown scan??
Thanks
> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
I think that the conditions c5 and c6 only need to be modified:
c2 = Close > 5.00
indicator2 = Volume
indicator3 = (Average[20](Volume)) * 1.5
c3 = indicator2 > indicator3
c4 = (average[20] (Volume)) > 200000
indicator4 = Average[40](Close)
indicator5 = Average[120](Close)
c5 = (indicator4 <= indicator5)
indicator6 = (lowest[40](low[1]))
c6 = (close <= indicator6)
criteria = volume
SCREENER [c2 AND c3 AND c4 AND c5 and c6] (criteria AS "volume")
Now the faster moving average is below the slowest one and we test if the close is inferior to the lowest low of the last 40 periods (instead of the highest high for the bull version of this stock screener).
I did not test it, please tell us if it works ok. Thank you.