Monthly Pin Bar ProScreener

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #72057 quote
    TraderArun
    Participant
    Junior

    Hi,

    Can you supply the code for a Monthly Pin Bar ProScreener detection?

    Many thanks

    #72058 quote
    robertogozzi
    Moderator
    Master

    Unfortunately ProScreener does not support applying scanning to monthly bars.

    You can check this by trying to apply any other screener you already have to another TF, the drop-down menu won’t show you the monthly TF.

    #72377 quote
    Nicolas
    Keymaster
    Master

    But .. we could try to build the monthly candlestick from OHLC values collected along the reading of daily data history. If your query is still valid, @TraderArun, I think that we could do something!

    #72379 quote
    TraderArun
    Participant
    Junior

    Thank you.

    How do I reference the previous months OHLC within the ProScreener?

    Thanks

    #72380 quote
    Nicolas
    Keymaster
    Master

    It’s not possible to reference the Monthly timeframe. However I successfully made this monthly pinbar screener:

    if month<>month[1] then 
    oo=open
    hh=0
    ll=oo*100
    endif
    
    hh=max(high,hh)
    ll=min(low,ll)
    
    body = ABS(oo-close)
    bearishwick = ABS(hh-close)
    bearishnose = ABS(close-ll)
    bullishwick = ABS(close-ll)
    bullishnose = ABS(hh-close)
    
    //bearish pinbar
    bearishpinbar = (body/bearishwick)<20/100 AND (body/bearishnose)>100/100
    
    //bullish pinbar
    bullishpinbar = (body/bullishwick)<20/100 and (body/bullishnose)>100/100
    
    test = (bearishpinbar or bullishpinbar)
    
    screener [test]

    Seems to work fine, please confirm.

    robertogozzi and TraderArun thanked this post
    #72387 quote
    TraderArun
    Participant
    Junior

    Hi,

    Thanks for providing the code. It works for the current monthly pin bar (Pinbar[0]).

    Can you provde an amended code for last months Pin Bar (Pinbar[1])?

    Thanks again

    #72409 quote
    Nicolas
    Keymaster
    Master

    You can try with:

    if month<>month[1] then
    c=test
    oo=open
    hh=0
    ll=oo*100
    endif
    
    hh=max(high,hh)
    ll=min(low,ll)
    
    body = ABS(oo-close)
    bearishwick = ABS(hh-close)
    bearishnose = ABS(close-ll)
    bullishwick = ABS(close-ll)
    bullishnose = ABS(hh-close)
    
    //bearish pinbar
    bearishpinbar = (body/bearishwick)<20/100 AND (body/bearishnose)>100/100
    
    //bullish pinbar
    bullishpinbar = (body/bullishwick)<20/100 and (body/bullishnose)>100/100
    
    test = (bearishpinbar or bullishpinbar)
    
    screener [c]
    TraderArun thanked this post
    #72503 quote
    TraderArun
    Participant
    Junior

    Worked a treat. Thank you every so much!

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

Monthly Pin Bar ProScreener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
TraderArun @traderarun Participant
Summary

This topic contains 7 replies,
has 3 voices, and was last updated by TraderArun
7 years, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 06/02/2018
Status: Active
Attachments: No files
Logo Logo
Loading...