Doji entry scanner
Forums › ProRealTime English forum › ProScreener support › Doji entry scanner
- This topic has 6 replies, 4 voices, and was last updated 5 years ago by robertogozzi.
-
-
04/01/2017 at 1:25 PM #30607
I read Nicolas post ‘Candlestick patterns recognition’ (https://www.prorealcode.com/prorealtime-indicators/candlestick-patterns-recognition/).
Could someone help to create this scanner idea I have.
Trigger: Doji on 1 hr daily frame, that occur within Daily pivot points (or in R2, R1, S1, S2 …etc). See image for example what I mean…
Not even sure if it’s possible to do
04/04/2017 at 6:18 PM #3102104/20/2017 at 7:49 AM #3268104/20/2017 at 9:47 AM #32694This is the code for your stock screener to find doji candlestick piercing pivots points (bearish signals when the high crosses one of the pivot points and bullish ones when it is the low of the candle).
123456789101112131415161718192021222324252627282930// --- settingsDojiSize = 20 //x% percent of body size compared to the complete range of the candlestickmode = 1 //Pivot calculation method// ---If Day>Day[1] thenIf mode = 0 thenPivot = (DHigh(1) + DLow(1) + Close[1]) / 3Elsif mode = 1 thenPivot = (Open + DHigh(1) + DLow(1) + Close[1]) / 4Elsif mode = 2 thenPivot = (DHigh(1) + DLow(1) + Close[1]*2) / 4ElsePivot = (Open*2 + DHigh(1) + DLow(1)) / 4EndifR1 = 2*Pivot - DLow(1)S1 = 2*Pivot - DHigh(1)rR2 = Pivot + (DHigh(1) - DLow(1))S2 = Pivot - (DHigh(1) - DLow(1))R3 = R1 + (DHigh(1) - DLow(1))S3 = S1 - (DHigh(1) - DLow(1))Endifdoji=(abs(open - close) <= (high - low) * DojiSize/100)bullish = doji and (high crosses over pivot or high crosses over r1 or high crosses over s1 or high crosses over rr2 or high crosses over s2 or high crosses over r3 or high crosses over s3)bearish = doji and (low crosses under pivot or low crosses under r1 or low crosses under s1 or low crosses under rr2 or low crosses under s2 or low crosses under r3 or low crosses under s3)screener [bullish OR bearish]04/21/2017 at 12:50 AM #32821If I want to change the daily pivot to monthly or weekly . Do I just change line 6 to ‘month’ or ‘weekly’?
If I want to combine another candlestick with Doji (i.e. bearish/bullish Hammer), what would the code be?
I know this is pain in the a***, but I would be very much greatful.
Thanks
12/12/2019 at 4:21 PM #114750hi amigos, trying to pick up the coding here
what amendments would we need to change a screener into an indicator? i am trying to identify a bullish signal as +1 (hammer, dragonfly doji, inverted hammer) and bearish signal as -1 (hanging man, gravestone doji)
thnks
12/12/2019 at 4:37 PM #114753Replace line 30 with:
1RETURN bullish OR bearishor, if you want signals 1 and -1:
1RETURN bullish OR -bearish,0 -
AuthorPosts
Find exclusive trading pro-tools on