Weekly Pivot screener

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #159712 quote
    Henchey
    Participant
    Junior

    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

    #159718 quote
    robertogozzi
    Moderator
    Master

    If you post your code we might help you spot what’s wrong.

    #159724 quote
    Henchey
    Participant
    Junior
    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.

    #159725 quote
    Henchey
    Participant
    Junior

    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)
    
    #159779 quote
    Henchey
    Participant
    Junior

    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)
    
    qigley thanked this post
    #159819 quote
    robertogozzi
    Moderator
    Master

    That’s good news!

    And congratulations for your determination!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Weekly Pivot screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Henchey @henchey Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by robertogozzi
5 years, 1 month ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/28/2021
Status: Active
Attachments: No files
Logo Logo
Loading...