# Technical Analysis

## Pattern Detection

### Overview

The **Pattern Detection** feature automatically identifies and displays common chart patterns on your chart. This tool helps you spot potential trading opportunities based on well-known technical formations like triangles, wedges, and head & shoulders.

By automating the detection process, this feature saves you time and helps ensure you don't miss key patterns as they develop.

#### Supported Chart Patterns

{% tabs %}
{% tab title="Ascending/Descending Triangle" %}

<figure><img src="/files/g7IWx2K6InlnogXtJEsV" alt=""><figcaption><p>Example of Descending Triangle Chart Pattern</p></figcaption></figure>
{% endtab %}

{% tab title="Rising/Falling Wedge" %}

<figure><img src="/files/0tp333Li1lR9VAuUKoqL" alt=""><figcaption><p>Example of Falling Wedge Chart Pattern</p></figcaption></figure>
{% endtab %}

{% tab title="Ascending/Descending Broadening Wedge" %}

<figure><img src="/files/zAHs7AUDNXxiI90CXJzJ" alt=""><figcaption><p>Example of Descending Broadening Wedge Chart Pattern</p></figcaption></figure>
{% endtab %}

{% tab title="Symmetrical Triangle" %}

<figure><img src="/files/zCLUqJgK0nVCRrlXNXL0" alt=""><figcaption><p>Example of Symmetrical Triangle Chart Pattern</p></figcaption></figure>
{% endtab %}

{% tab title="Head & Shoulder" %}

<figure><img src="/files/djAHfSNml5uI1YC8UKS2" alt=""><figcaption><p>Example of Head &#x26; Shoulder Chart Pattern</p></figcaption></figure>
{% endtab %}

{% tab title="Double Top/Bottom" %}

<figure><img src="/files/S1T9cag7bDrU88bf0yHr" alt=""><figcaption><p>Example of the Double Bottom Chart Pattern</p></figcaption></figure>
{% endtab %}
{% endtabs %}

### Settings

You can configure the Pattern Detection feature to match your preferred trading timeframe and display preferences.

| Setting                   | Description                                                                                                                             |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| **Pattern Detection**     | Enables the pattern detection algorithm and allows you to set the analysis timeframe to **Short-term**, **Mid-term**, or **Long-term**. |
| **Display Past Patterns** | When enabled, previously detected patterns will remain visible on your chart for historical analysis.                                   |
| **Show Text**             | Controls the size of the text labels that identify each pattern.                                                                        |
| **Text Color**            | Sets the color of the pattern labels.                                                                                                   |
| **Pattern Colors**        | Allows you to customize the colors used to draw the different types of patterns.                                                        |

### Best Practices & Usage

* **Match Timeframe to Your Strategy:**
  * Use **Short-term** for day trading to find patterns that resolve quickly.
  * Use **Mid-term** for a balanced approach suitable for most trading styles.
  * Use **Long-term** for swing or position trading to identify major, high-confidence patterns.
* **Use for Confirmation:** Combine detected patterns with other indicators or analysis techniques to confirm your trade ideas. A pattern that forms at a key support or resistance level is often more significant.
* **Keep an Eye on Incomplete Patterns:** The indicator will draw patterns in an "incomplete" color as they form. This can give you an early heads-up to a potential setup.

### Examples

{% tabs %}
{% tab title="#1" %}

| Before                                                                                                                                                              | After                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>A Symmetrical Triangle is detected and recognized, the price broke above it which is a bullish indication.<br><img src="/files/HITZT5uFq22zB6BQAt3V" alt=""></p> | <p>The price went up as a result of the Symmetrical Triangle Chart Pattern.<br><img src="/files/2xjvz77tiBzmVHheGtam" alt="" data-size="original"></p> |
| {% endtab %}                                                                                                                                                        |                                                                                                                                                        |

{% tab title="#2" %}

| Before                                                                                                                                           | After                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| <p>A Double Bottom Chart Pattern is detected and recognized, this is a bullish indication.<br><img src="/files/6SJvULa2jnsM79nDb9Fw" alt=""></p> | <p>The price went up as a result of the Double Bottom Chart Pattern.<br><img src="/files/PhtrivO2X4iMYuIfqXAn" alt=""></p> |
| {% endtab %}                                                                                                                                     |                                                                                                                            |
| {% endtabs %}                                                                                                                                    |                                                                                                                            |

## Trendlines Detection

### Overview

The **Trendlines Detection** feature uses an advanced algorithm to automatically identify and draw significant trendlines on your chart. This tool helps you visualize the market's structure and identify key areas of dynamic support and resistance without the need for manual drawing.

The indicator also incorporates an **Adaptive Transparency** feature, which makes more significant and well-established trendlines appear more solid, while newer or weaker trendlines are more transparent.<br>

<figure><img src="/files/SCnBEmHl98tsginPqunt" alt=""><figcaption></figcaption></figure>

### Settings

You can configure the Trendlines Detection feature to fit your analysis style.

| Setting                    | Description                                                                                                                     |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **Trendlines Detection**   | Enables the trendline detection and allows you to set the analysis timeframe to **Short-term**, **Mid-term**, or **Long-term**. |
| **Liquidity Calculations** | When enabled, the algorithm will include volume-based liquidity analysis to identify more robust and significant trendlines.    |
| **Adaptive Transparency**  | When enabled, the transparency of the trendlines will dynamically adjust based on their significance.                           |
| **Trendline Colors**       | Allows you to customize the colors for bullish (uptrend) and bearish (downtrend) trendlines.                                    |

#### Best Practices & Usage

* **Identify Dynamic Support and Resistance:** Use the automatically drawn trendlines to spot key levels where the price may bounce or reverse.
* **Confirm Trend Strength:** A long, well-respected trendline with multiple touches is a strong indicator of the market's primary direction.
* **Spot Trend Breaks:** A decisive price close across a major trendline can signal a significant shift in market momentum and a potential trading opportunity.
* **Enable Liquidity Calculations:** For more reliable trendlines, it's recommended to keep the Liquidity Calculations setting enabled, as it helps the algorithm focus on levels with significant market interest.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.lunefi.com/premium-tradingview-indicators/lune-indicators-suite/lune-technical-analysis/technical-analysis.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.
