Hi,
Can you supply the code for a Monthly Pin Bar ProScreener detection?
Many thanks
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.
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!
Thank you.
How do I reference the previous months OHLC within the ProScreener?
Thanks
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.
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
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]
Worked a treat. Thank you every so much!