Kaspricci

Hammer & Shooting Star [C] - Kaspricci

Hammer and Shooting Star
This indicator identifies Hammer and Shooting Star candles and marks them with a respective label. It uses a set of predefined fibonacci levels to measure the size of the body in comparison to the overall size of the candle. You can change the fibonacci level according to your preferences.

You can enable a confirmation of the Hammer or Shooting Star candle by a following green or red candle.

Settings
  • Fibonacci Level - Select on of the predefined fibonacci levels as a threshold for the maximum size of the body compared to the overall size of the candle.
  • Confirm by next candle - by default turned off. If turned on, this will check the subsequent candle and only mark a Hammer followed by a green candle or a Shooting Star followed by a red candle.
  • Show labels on chart - by default turned on. If turned off, the indicator will hide the labels on the chart.
Alerts
You can create alerts for Hammer and Shooting Star candles. The indicator provides the respective conditions.

Linking with Backtesting Strategy
I also added a feature to combine this indicator with a backtesting strategy. It provides a plot Connector which can be selected in a backtesting strategy supporting this linking feature.

Signals:
  • Signal: 2 - Hammer candle (long entry)
  • Signal: -2 - Shooting Start candle (short entry)
You can see the signal values in the status line of the indicator. This is based on the External Signal Protocol defined by PineCoders.

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.

Disclaimer

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?