Weekly Pivot screener
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:
Forums › ProRealTime English forum › ProScreener support › Weekly Pivot screener
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.
1 2 3 4 5 6 |
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
1 2 3 |
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):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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!
Find exclusive trading pro-tools on