Forums › ProRealTime English forum › ProBuilder support › Monthly High Low Close Indicator › Reply To: Monthly High Low Close Indicator
09/22/2017 at 9:14 AM
#46890
Because it needs at least some history to be loaded (barindex>20):
1 2 3 4 5 6 7 8 9 10 |
If Month <> Month[1] and barindex>20 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] |
I still have some of your posts in pending review, because you didn’t send me the code in open source format 🙂 You can send them to me at my email: nicolas[at]prorealcode.com ; many thanks for sharing!