Hammer & Shooting Star Indicator

DavidOConnorSpain Updated   
A hammer candle is defined here as 1) the lower shadow (wick) is at least twice the length of the main body and 2) the close is in the top half of the range.
A shooting star has the opposite conditions 1) the upper shadow is at least twice the size of the main body and 2) the close is in the lower half of the range.
These candles should not be used by themselves but used in context ie with Bollinger bands, RSI or other oscillators they can form part of a mean reversion system.
Release Notes:
updates the first version to include the case where the wick length is exactly twice the body length as this is also valid.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?