Forums › ProRealTime English forum › ProBuilder support › Monthly High Low Close Indicator › Reply To: Monthly High Low Close Indicator
09/22/2017 at 8:58 AM
#46888
Strange, this code works as an indicator but not as a screener??
1 2 3 4 5 6 7 8 9 10 |
If Month <> Month[1] then monthlyHigh = Highest[BarIndex - lastMonthBarIndex](High) monthlyLow = Lowest[BarIndex - lastMonthBarIndex](Low) lastMonthBarIndex = BarIndex ENDIF C1 = Dclose(0) > monthlyHigh C2 = Dclose(0) < monthlyLow SCREENER[C1 or C2] |