Double Pin Bar Bullish/Bearish

Forums ProRealTime English forum ProScreener support Double Pin Bar Bullish/Bearish

Viewing 6 posts - 1 through 6 (of 6 total)
  • #66241

    Hi, Would anyone be able to help with the coding on how to screen for 2 consecutive pinbars?  I have had a look on the forum and can only see coding for one pinbar and struggling to know how to code for 2 pinbars.

    Thanks

    #66384

    If anyone can provide any wisdom to this you would make my day!  🙂  I’ve scanned all 20 pages in this forum as well as reading the 29 page manual on coding with the hope of finding a few snippets of code to help in my quest and I’m still none the wiser.

    #66396

    How do you want a Pin Bar to be defined?

    1. number of pips of upper shadow (or percentage on whole range), i.e. say 20 pips or 50%-70% of its range
    2. number of pips of lower shadow (or percentage on whole range), i.e. say 5 pips or 5%-30% of its range
    3. number of pips of body size (or percentage on whole range), i.e. say 10 pips or 5%-20% of its range.

    Once it’s defined it will be easy to detect as many as you want.

    #66416

    I found an old topic with a Pinbar code, made a consecutive 2 bullish or bearish pinbars detection screener:

    In each case, the body of candlestick must be inferior to 20% of the wick, and larger than nose.

    1 user thanked author for this post.
    #66490

    Thanks Nicolas, much appreciated, is there a way of getting the two previous bars before the current one?  Just that if I run this for Daily Pinbars, it would include a forming Pinbar which might not end up being a pinbar once the candle closes.

    Cheers

     

    #66505

    You can try by modifying the line 13:

     

Viewing 6 posts - 1 through 6 (of 6 total)

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