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?
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
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
IFDAYOFWEEK<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
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue