Help with a pin bar screener
Forums › ProRealTime English forum › ProBuilder support › Help with a pin bar screener
- This topic has 10 replies, 2 voices, and was last updated 3 years ago by Ryan.
Tagged: hammer, pinbar, shooting star
-
-
10/09/2020 at 2:32 AM #146799
Hi,
I would value your assistance.
I have not been able to configure a indicator to identify 1d pin bars where the the open must be with-in the bottom/top 50% (1/2) of the bar and the close must be with-in then bottom/top 33% (1/3rd) of the candle.
hope this makes sense.
Any assistance will be much appreciated
thanks
10/09/2020 at 7:54 AM #146820It depends of the color of the bar and of the direction of the pinbar: shooting star or hammer type?
Look at this code from the library, you can adjust the factor (percentage/100) in the code: Pin bar detection
10/09/2020 at 11:03 AM #146853thanks alot for the reply!
im such a novice i still dont understand how to modify that code to suit.
If for example i wanted to make it screen out hammer bars where the close must be in the top 30% of the bar and the open must be in the top 50% of the bar..
could you tell me what to change
thanks again
10/09/2020 at 11:04 AM #14685410/09/2020 at 11:31 AM #146857Here is the code to scan for hammer / pinbar:
123456789hammer = 0IF (high - low) > 2* abs(close - open) THEN // définition d’une pin bar (étoile filante ou marteau)IF (high - open) < 0.5*(high - low) OR (high - close) < 0.3*(high-low) THENhammer = 1ENDIFENDIFscreener[hammer]10/09/2020 at 12:30 PM #14686310/09/2020 at 12:45 PM #146865Sorry but you asked for a screener in the indicator forum section, so what do you want as the final code please?
In your last message you were talking about hammer and now shooting star, please define in single post what is exactly needed here, we will all gain times! 🙂
10/09/2020 at 12:53 PM #146869i know ive been very confusing sorry.
it is an indicator i want not a screener.
it doesn’t matter if it is a shooting star or a hammer to me.
i just want it to indicate to me bars that have the open AND the close in the bottom 50% BUT must also have a open or a close in the bottom 30%. (bearish)
and
bars that have the open AND the close in the top 50% BUT must also have a open or a close in the top 30% (bulish)
so in theory pin bars (shaped like a hammer or star) that meet them rules.
10/09/2020 at 1:26 PM #146875The below indicator code marks the hammer and shooting star candlesticks according to your definition:
1234shooting = (min(open,close)-low)/range<=.3 and (open-low)/range<=.5 and (close-low)/range<=.5hammer = (high-max(open,close))/range<=.3 and (high-open)/range<=.5 and (high-close)/range<=.5return -shooting,hammer10/09/2020 at 1:34 PM #14687803/16/2021 at 12:06 PM #164328Hi
Im not sure if you can help me again..
The indicator you made me for pin bars is brilliant.
When a bullish pinbar is indicated I enter my trade 1 pip above that candle and place my stop loss 1 pip below the candle.
i aim for 1/1 risk reward so target is the range of the candle above the candle in a bullish example.
is there anyway to give me a visual reference of this?
so for example when a bullish pin bar is indicated can it also show me a green zone above the candle starting 1 pip above the high all the way up to the range of the candle on top.
thanks
-
AuthorPosts
Find exclusive trading pro-tools on