# Streak

### Serie of candles

<figure><img src="/files/8g6ZnBUMfGZ1yDmm3U7P" alt="" width="563"><figcaption><p><strong>In this example, we want to go long once exactly 3 consecutive candles of 5 minutes each are green.</strong></p></figcaption></figure>

<figure><img src="/files/WVYR80h4PfmCYyWGvUUw" alt=""><figcaption><p><strong>A long signal is triggered after three consecutive 5-minute candles close in green.</strong></p></figcaption></figure>

<figure><img src="/files/z0MFPTpZxDZWGoxqiG2f" alt="" width="563"><figcaption><p><strong>In this example, we want to short once exactly 3 consecutive candles of 5 minutes are down.</strong></p></figcaption></figure>

<figure><img src="/files/vhHa43hE8FmP5tKuhmeb" alt=""><figcaption><p><strong>A short signal is triggered after three consecutive 5-minute candles close in red.</strong></p></figcaption></figure>

### SMA Series

Instead of relying solely on the price, this trigger takes into account the simple moving average (SMA) of the chosen period. This approach results in longer streaks as the SMA smooths out fluctuations. Furthermore, it helps to eliminate the "noise" caused by isolated upward candles that disrupt a series of downward candles.

<figure><img src="/files/MzT8c4A3zikQokVUArj7" alt="" width="563"><figcaption><p><strong>In this example, we want to long once exactly 1 SMA value of period 10 is green.</strong></p></figcaption></figure>

## Notes :&#x20;

* When using the streak indicator, we recommend you to apply a volatility filter (can be done through ATR indicator), candles streaks can be extremely different in low and high volatility time.
* You can use this indicator as a trend analyzer. To increase the reliability of streak indicators, consider using additional confirmation signals such as VWAP, EMA or even momentum indicators. This will help to validate potential trading opportunities after getting the correct trend.


---

# 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/streak.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.
