This screener will find candlesticks with a real body of one third or less the size of the overall candle, following a decline. Therefore it will detect Hangmen, Hammers, inverted Hammers, Spinning Tops, Dojis, etc.
I have used ProRealTime’s Bullish Engulfing code to detect the decline.
Note: Rather than write several screeners to detect the individual candle types, this screener is relatively generic, so will throw up candles which do not necessarily imply a reversal – for example, the main body may not be close enough to the end of the candle to be a true hammer or hanman, and not close enough to the centre to be a spinning top. Obviously any such detections should be discarded.
Good luck in your trading.
REM Compute the power of the bearish trend
// Find the highest quote on the last 8 bars
HighPoint = HIGHEST(HIGH)
// Compute the variation of price from this point to now
Decline = HighPoint - CLOSE
// Compute the usual volatility of the stock (median of True Range)
Norm = SUMMATION(TR) - HIGHEST(TR) - LOWEST(TR)
if norm <>0 then
criteria=Decline / Norm
REM Stock picking : only candles whose real body is equal to, or less than, one third of the overall range.
Filter = ABS(open - close) <= (ABS(high-low))/3
REM We keep the most serious declines
SCREENER [ Filter ] (criteria AS"Trend Power")
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.ProRealTime ITF files and other attachments :