This screener’s code should work as intended:
|
body=close-open abody=abs(body) if range>0 then ratio=abody/range else ratio=0 endif shadowtop=high-bodytop shadowbottom=bodybottom-low bodytop=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 screener[Hammer](range/close) |
5% is a big candlestick, it filters a lot the results.