Help required designing Pocket Pivot Indicator

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #78043 quote
    robertogozzi
    Moderator
    Master

    Personal info and contacts cannot be posted!

    Thanks,

    #78064 quote
    @Dazzle101
    Participant
    Junior

    Make sure you copy and paste exactly Man,
    Make sure you are pasting the Screener as a Pro Screener, and the Indicator as an Indicator.
    Delete what comes up at the start of making a new Screener first.
    It’s normally a copy/ paste issue.

    #78066 quote
    Nobody
    Participant
    Veteran

    And here’s the indicator;

    Cheers,

    Dale 😉

    What the chances of just posting the indicator in isolation , saves trying to solve the ” riddle “

    #78067 quote
    @Dazzle101
    Participant
    Junior
    // ----------------------------------
    // The Pocket Pivot Indicator
    //
    // ver 0.1
    // 0.2 - using the max volume of a down day in the past 10 days
    //
    // ----------------------------------
    
    // Basic criteria
    minPrice = 0.0001
    minVol = 1000
    daysToConfirmUpTrend =9
    
    // Only scan leading stocks above minimal price and 40 day moving average of Volume is above 500000]
    cVol1 = (Close >= minPrice AND Average[50](Volume) >= minVol)
    
    // Trend is up and Today is an up day
    cPrc1 = (Close >= Average[daysToConfirmUpTrend](Close) AND Close >= Close[1] )
    
    // Today's volume should be larger than the volume of the highest down day over the last 10 days
    maxDay = 9
    maxDownDay = 0
    maxDown = 0
    
    FOR d = 1 TO maxDay DO
    r = Close[d] > Open[d]
    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)
    
    // draw indicator
    ind1 = (cPrc1 AND cVol1 AND cVol2 )
    
    RETURN ind1 COLOURED(0, 0, 200) AS "Pocket Pivot Mod 9 Day "
    Nobody thanked this post
    PP-Indicator.txt
    #78069 quote
    Nobody
    Participant
    Veteran

    Thank you  . The best way to share a code is in an ITF file for future reference

    POCKET-PIVOT.itf
    #78071 quote
    swapping
    Participant
    Master
    // ———————————-
    // The Pocket Pivot Indicator
    //
    // ver 0.1
    // 0.2 – using the max volume of a down day in the past 10 days
    //
    // ———————————-
    // Basic criteria
    
    minPrice = 0.0001
    minVol = 1000
    daysToConfirmUpTrend =9
    
    // Only scan leading stocks above minimal price and 40 day moving average of Volume is above 500000]
    cVol1 = (Close >= minPrice AND Average[50](Volume) >= minVol)
    
    // Trend is up and Today is an up day
    cPrc1 = (Close >= Average[daysToConfirmUpTrend](Close) AND Close >= Close[1] )
    
    // Today’s volume should be larger than the volume of the highest down day over the last 10 days
    maxDay = 9
    maxDownDay = 0
    maxDown = 0
    FOR d = 1 TO maxDay DO
    r = Close[d] > Open[d]
    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)
    
    // draw indicator
    ind1 = (cPrc1 AND cVol1 AND cVol2 )
    RETURN ind1 COLOURED(0, 0, 200) AS “Pocket Pivot Mod 9 Day “
    

    Hello @dazzle101, the button “Insert PRT code” is your friend 😉

    #78072 quote
    Vonasi
    Moderator
    Master

    Dazzle101 – As Swapping correctly points out the ‘Insert PRT Code’ button is your friend. Please use it to make your code more readable for others when posting code in the future. I have tidied up your original post for you. 🙂

Viewing 7 posts - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.

Help required designing Pocket Pivot Indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
dalgy @dalgy Participant
Summary

This topic contains 21 replies,
has 8 voices, and was last updated by Vonasi
7 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/05/2017
Status: Active
Attachments: 13 files
Logo Logo
Loading...