Hello
I’m tying to screen for example the daily open below the weekly pivot and the daily close above the weekly pivot point. This seems straightforward but doesn’t seem to work. Can anybody advise how I’ve got this wrong?
Many thanks
Pete
If you post your code we might help you spot what’s wrong.
ignored, ignored, ignored, ignored, ignored, ignored, indicator1, ignored, ignored, ignored, ignored, ignored, ignored = CALL "Weekly Pivot Points"
c1 = (open < indicator1)
c2 = (close > indicator1)
SCREENER[c1 AND c2] (Variation AS "%Chg prev bar")
Thanks Roberto, I’ve tried using a weekly pivot point indicator that was developed by a contributor on prorealcode (see attached code) but this has not worked in the screener.
Also using the prorealtime in built pivot point indicator seems to default to the daily pivot point code, even though its using the weekly option on the timeframe drop down menu
indicator1 = (DHigh(1) + DLow(1) + DClose(1))/3
c1 = (open < indicator1)
c2 = (close > indicator1)
Ok I’ve made some progress, this seems to be working (my thanks to the original contributor who shared the weekly pivots point indicator on prorealcode):
IF DAYOFWEEK < DAYOFWEEK[1] THEN
weekhigh = prevweekhigh
weeklow = prevweeklow
weekclose = prevweekclose
prevweekhigh = HIGH
prevweeklow = LOW
ENDIF
prevweekhigh = MAX(prevweekhigh, HIGH)
prevweeklow = MIN(prevweeklow, LOW)
prevweekclose = CLOSE
// Point pivot : P = (Hveille + Bveille + Cveille) / 3
PP = (weekhigh + weeklow + weekclose)/3
c1 = Open < PP
c2 = Close > pp
SCREENER[c1 AND c2] (Volume)
That’s good news!
And congratulations for your determination!