Pocket pivot indicator

Forums ProRealTime English forum ProBuilder support Pocket pivot indicator

Viewing 15 posts - 1 through 15 (of 19 total)
  • #156159

    Good morning guys, happy new year. i found this code for the “pocket pivot” indicator on the site but i think its coded incorrectly and i wondered if one of you guys could help me fix it please? The indicator should find when the volume of a stock on an “up day” is greater than the volume of the last 10 days “down days.” I believe the code I’ve posted just looks back at the last 10 days rather than the last 10 days “down days.” Any help as always would be appreciated.

    Best regards

    #156167

    is greater than the volume of the last 10 days “down days.”

    Do you mean greater than the last 10 down days volumes combined or greater than the largest volume day in the last 10 down days?

    1 user thanked author for this post.
    #156169

    Sorry, i wasnt clear. i mean greater than the largest volume down day in the last 10 down days. Thanks for your reply!

    #156172

    This code checks for greater than the largest volume day in the last 10 down days. I left all your other conditions in the code.

     

    1 user thanked author for this post.
    #156173

    wow, thanks so much

    #156174

    This does the other option. It is unlikely to get many hits as adding together the volume of 10 down day candles equals a lot of volume to have in just one up candle!

     

    #156178

    I notice that your description requires an up day – this is not in the original code! Here is a pure version that just does what you ask for. It looks for a green day that has volume greater than the biggest volume in the last ten down days.

     

     

    1 user thanked author for this post.
    #156179

    Fabulous, thanks so much for your help.

    #156298

    One final question if i may? How does one turn the indicator into a screener please?

    #156314

    Just call it from a screener:

    Change the name from Pocket Pivot if you have called the indicator something different.

    1 user thanked author for this post.
    #156326

    Sorry, im sure im doing something stupid but i get a syntax error “This variable is not used in the code:maxdown”. Would you mind taking a look and tell me where im going wrong?
    Thanks for all your help.

    Best regards

    #156329

    Just delete line 5.

    #156333

    Thanks so much!

    #156341

    Sir, im sorry to be a pain…i just took a look at the indicator you kindly helped me with and it doesn’t seem to do what i wanted it to. I wanted it to tell me: if volume on a up day was greater than the highest volume of the previous 10 down days. I just looked manually at an ETF (PHSP) which i think should have done this today but the indicator didnt pick it up?

    #156344

    The code you posted is not the same as I posted in this post:

    https://www.prorealcode.com/topic/pocket-pivot-indicator/#post-156178

    Look at line 16 – there is an additional condition for this current candle being green.

Viewing 15 posts - 1 through 15 (of 19 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login