# Components

This CRT Model is designed to analyze and interpret price action patterns through various components, each of which plays a critical role in identifying market trends and providing actionable insights.

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

Below are the key components that make up the algorithm:

* **Sweep**
* **D-purge**
* **CISD**
* **Mean**

## **Components**

### **1. Sweep**

**Definition:** A Sweep is a candlestick pattern where the price momentarily exceeds the high or low of the previous candle (via the wick) and then closes within that candle’s range.

**Formation:**

* **Bullish Sweep:** The price briefly surpasses the high of the prior candle and closes back within its range.
* **Bearish Sweep:** The price briefly surpasses the low of the prior candle and closes back within its range.

**Invalidation:**

* **Bullish Sweep:**
  * Invalidated if the next candle is bullish and its body closes above the high of the prior candle.
  * Invalidated if any subsequent bullish candle closes above the high of the prior candle.
* **Bearish Sweep:**
  * Invalidated if the next candle is bearish and its body closes below the low of the prior candle.
  * Invalidated if any subsequent bearish candle closes below the low of the prior candle.

{% hint style="warning" %}
Real-time models remove the sweep when the model is invalidated and the candle is closed. For other models, the sweep is retained and only invalidated if the sweep itself is invalidated, with the update clearly highlighted in the UI.
{% endhint %}

### **2. D-Purge**

**Definition:** A D-purge is a type of Sweep where the price exceeds both the high and low of the previous candle (via wicks) and then closes within the range of the prior candle.

**Formation:** A D-purge Sweep requires two higher-time-frame candles, with both sides of the previous candle being swept. The side that is swept last determines the direction of the D-purge.

**Invalidation:**

* **Bullish D-purge:**
  * Invalidated if the next candle is bullish and closes its body above the high of the prior candle.
  * Invalidated if any subsequent bullish candle closes above the high of the previous candle.
* **Bearish D-purge:**
  * Invalidated if the next candle is bearish and closes its body below the low of the prior candle.
  * Invalidated if any subsequent bearish candle closes below the low of the prior candle.

### **3. CISD**

**Definition:** Change in State of Delivery (CISD) refers to a shift in price delivery, indicating a transition between the buy-side and sell-side or vice versa.

**Formation:**

* **Bullish CISD:** Occurs when the price closes above the opening price of a bearish delivery.
* **Bearish CISD:** Occurs when the price closes below the opening price of a bullish delivery.

**Invalidation:**

* N/A (No specific invalidation).

### **4. Mean**

**Definition:** The mean is the midpoint of the previous candle.

**Formation:** The midpoint of the previous candle is marked at the close of the current candle.

**Invalidation:**

* **Bullish:** Invalidated if a bullish candle closes above the midpoint of the previous candle.
* **Bearish:** Invalidated if a bearish candle closes above the midpoint of the previous candle.


---

# 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.candelacharts.com/models/crt-model-tm/components.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.
