# Candle

## Hammer pattern

### Wick and Pin

First, you need to select if you are looking for a bullish or bearish hammer. For a bullish hammer, the upper wick of the candle is called the "pin". The opposite, on the lower part of the candle, is the "wick".\
For a bearish hammer, the lower wick of the candle is the "pin" and for the top of the body, it's the "wick". See next illustrations.

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2F5YWVM434545JkqHib1xN%2Fimage.png?alt=media&#x26;token=f3784ebc-598c-4dcb-9444-c857acfaa832" alt=""><figcaption><p><strong>We are looking for reversal bullish hammers, this is why we consider the top wick as the pin here.</strong></p></figcaption></figure>

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FliE5ylW8gjmlPMkdIcxl%2Fimage.png?alt=media&#x26;token=fd3d3b35-7740-4a62-800f-007efe4028ef" alt=""><figcaption><p><strong>We are looking for a reversal bearish hammer, this is why we consider the top as the wick here.</strong></p></figcaption></figure>

### Strict and lazy hammer

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2F9AbDfH4l1NfOP57W3W5Y%2Fimage.png?alt=media&#x26;token=d850a4b5-32fa-4174-b98d-43f645e0eaa7" alt="" width="488"><figcaption><p>Bull strict candle hammer</p></figcaption></figure>

We can consider 2 types of hammers. A '**strict**' bullish hammer, is a candle with a green body, with a close price of the candle higher than the open price.&#x20;

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FbMCUbvh38tQFPTo877yl%2Fimage.png?alt=media&#x26;token=4e436cd4-5e4e-4212-8384-5de3383ba04d" alt="" width="495"><figcaption><p>Bull lazy candle hammer</p></figcaption></figure>

However, you can be less restrictive, and choose to consider a '**lazy**" hammer, where the body can also close red.

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FuoggLWKrPxHqpv2nLlkn%2Fimage.png?alt=media&#x26;token=a0821078-865f-40a7-a8bc-499653606c16" alt=""><figcaption></figcaption></figure>

### Cross wick

You can also decide how much candles on the past should not have a higher or lower price than your hammer wick.&#x20;

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FImYQx43hLU1TvlCtg2bH%2Fimage.png?alt=media&#x26;token=612e9ff6-d413-4a59-b294-64e201a0ec56" alt=""><figcaption><p><strong>You decide that, during the past 10 candles, the price can't be lower than your considering hammer. The price here did cross the hammer wick in the past, so the bullish hammer is not valid for a long.</strong></p></figcaption></figure>

### Example:

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FbTo2Fkx2kODUboDzV6nu%2Fimage.png?alt=media&#x26;token=5c2bff87-7bc6-4295-b2a7-b112e6d0dbed" alt="Candle hammer setup example" width="563"><figcaption><p><strong>In this example, we are looking for a strict bullish hammer (green body only) to long, with a minimum wick size of 60% of the candle, a max pin size of 10%, and also we don't want that the previous 5 candles had a lower price than our hammer wick.</strong></p></figcaption></figure>

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FfZV64uXac9cR2l0hca0D%2Fimage.png?alt=media&#x26;token=512e6692-d699-4c7b-b714-baa95c667417" alt=""><figcaption><p><strong>Valid bullish hammer, a long signal is triggered once the hammer candle closes.</strong></p></figcaption></figure>

## Notes

* **Bullish Hammer:** This pattern occurs at the end of a downtrend and features a candle with a small body at the top and a long lower wick (at least twice the length of the body), suggesting strong buying pressure and a potential reversal upward.
* **Bearish Hammer (or Shooting Star):** This appears at the end of an uptrend and has a small body at the bottom with a long upper wick, indicating selling pressure that could lead to a downward reversal.
* **Volume and Other Indicators:** Use volume as a confirmation tool; higher volume on the day a hammer or pin bar appears can enhance the reliability of the pattern. Additionally, using oscillators like RSI or MACD can help confirm whether the momentum is shifting from bearish to bullish or vice versa.
* **Avoid Trading in Choppy Markets:** These patterns are less reliable in sideways or highly volatile markets. Focus on using them in trending environments where they can signal meaningful reversals or continuation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.runbot.io/indicators/runbot-indicators/candle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
