Pocket pivot screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #162891 quote
    AlfyAlfy
    Participant
    Average

    Hi guys, i have a code for the “pocket pivot” indicator that im trying to turn into a screener. The indicator is picking up what i expect but the screener isnt. Ive posted the indicator code and then the screener code. Can you help please??

    daystoconfirmuptrend = 50
    cPrc1 = (close > Average[daysToConfirmUpTrend](close) AND Close > close [1])
    maxDay = 10
    maxDownDay = 0
    maxdown = 0
    FOR d = 1 TO maxDay DO
    r = Close[d] - close[d+1]
    IF r <0 and volume[d]> maxDown THEN
    maxDown = volume[d]
    maxDownDay = d
    ENDIF
    
    NEXT
    
    IF maxDownday = 0 THEN
    maxDowndayVol=0
    ELSE
    maxDowndayvol = volume[maxdownday]
    ENDIF
    
    cVol2 = (volume > maxDownDayvol)
    cVol3=(volume > average[50] (volume))
    Cprc2 = (close >= Average[20](close))
    Cprc3 = (close CROSSES OVER Average[10](close) OR Close CROSSES OVER Average[50](close))
    cPrc11 = (close > (high + low) *0.5)
    ind1 = (cPrc1 AND cPrc2 AND (cPrc3 OR 1) AND cVol2 AND cvol3 and (cPrc11 OR 1))
    RETURN ind1 COLOURED (0,0,200) AS "Pivot Pocket Vol50"
    
    
     
    daystoconfirmuptrend = 50
    cPrc1 = (close > Average[daysToConfirmUpTrend](close) AND Close > close [1])
    maxDay = 10
    maxDownDay = 0
    maxdown = 0
    FOR d = 1 TO maxDay DO
    r = Close[d] - close[d+1]
    IF r <0 and volume[d]> maxDown THEN
    maxDown = volume[d]
    maxDownDay = d
    ENDIF
    
    NEXT
    
    IF maxDownday = 0 THEN
    maxDowndayVol=0
    ELSE
    maxDowndayvol = volume[maxdownday]
    ENDIF
    
    cVol2 = (volume > maxDownDayvol)
    cVol3=(volume > average[50] (volume))
    Cprc2 = (close >= Average[20](close))
    Cprc3 = (close CROSSES OVER Average[10](close) OR Close CROSSES OVER Average[50](close))
    cPrc11 = (close > (high + low) *0.5)
    ind1 = (cPrc1 AND cPrc2 AND (cPrc3 OR 1) AND cVol2 AND cvol3 and (cPrc11 OR 1))
    SCREENER [IND1]
    
    #167601 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    It’s working fine for me.

    Make sure you have enough units on your chart. I’d say 10K+ to work fine.

    Alfy thanked this post
    #167774 quote
    AlfyAlfy
    Participant
    Average

    Thanks for your reply Roberto

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Pocket pivot screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Alfy @alfy Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by AlfyAlfy
5 years, 5 months ago.

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