30 Minute hammer reversal
Forums › ProRealTime English forum › ProScreener support › 30 Minute hammer reversal
- This topic has 4 replies, 2 voices, and was last updated 6 years ago by Nicolas.
Tagged: candlestick, candlestick pattern, hammer, pattern, reversal
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
09/14/2018 at 9:04 AM #8044809/14/2018 at 11:00 AM #80480
This screener’s code should work as intended:
123456789101112131415body=close-openabody=abs(body)if range>0 thenratio=abody/rangeelseratio=0endifshadowtop=high-bodytopshadowbottom=bodybottom-lowbodytop=max(open, close)bodybottom=min(open, close)longcandle= (ratio>0.6)Hammer=(longcandle[1] and low<low[1] and shadowbottom>2*abody and shadowtop<0.3*abody) and range/close>0.05screener[Hammer](range/close)5% is a big candlestick, it filters a lot the results.
09/28/2018 at 8:46 AM #8152009/28/2018 at 8:56 AM #8152409/28/2018 at 12:42 PM #81538Sure, try this new code, I added the weekly Close / 52 weeks HighestHigh ratio as the criteria:
1234567891011121314151617181920timeframe(weekly)wratio = close/Highest[52](high)[1]lessthan20 = wratio>=0.8timeframe(default)body=close-openabody=abs(body)if range>0 thenratio=abody/rangeelseratio=0endifshadowtop=high-bodytopshadowbottom=bodybottom-lowbodytop=max(open, close)bodybottom=min(open, close)longcandle= (ratio>0.6)Hammer=(longcandle[1] and low<low[1] and shadowbottom>2*abody and shadowtop<0.3*abody) and range/close>0.05 and lessthan20screener[Hammer](wratio) -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)