# Rectangle

### Introduction

The Rectangle is a **continuation** chart pattern that signals potential **LONG or SHORT opportunities** depending on breakout direction. This pattern occurs when price moves between horizontal support and resistance levels, indicating consolidation before the trend continues in its original direction.

### How Rectangle Works

Rectangle is a continuation chart pattern with specific characteristics:

• **Horizontal boundaries** - Clear support and resistance levels\
• **Consolidation phase** - Price oscillates between boundaries\
• **Volume pattern** - Relatively low during formation, increases on breakout\
• **Confirmation requirement** - Pattern confirmed when price breaks above resistance or below support\
• **Target calculation** - Rectangle height added to or subtracted from breakout point

{% hint style="info" %}
**Pattern Psychology:** The pattern represents a period of equilibrium where neither buyers nor sellers can gain control. The horizontal boundaries show consistent supply and demand levels. The eventual breakout demonstrates which side gains control and typically continues the prior trend direction.
{% endhint %}

#### Key Characteristics

| Attribute        | Details                                   |
| ---------------- | ----------------------------------------- |
| **Category**     | Chart Patterns                            |
| **Type**         | Continuation Signal                       |
| **Primary Use**  | Direction depends on breakout             |
| **Timeframe**    | All timeframes supported (1m to 1M)       |
| **Confirmation** | Breakout direction, volume, trend context |

### Strategy Applications

#### 🟢 LONG STRATEGY (Bullish Breakout)

{% hint style="success" %}
Rectangle generates **LONG signals** when price breaks above resistance, especially when the prior trend was bullish.
{% endhint %}

**Base Entry Order (LONG)**

```
Base Order Condition: Rectangle bullish breakout
First Condition: Rectangle
Timeframe: 1H

Additional Confirmation:
First Condition: Close Price
Timeframe: 1H  
Operator: Greater Than
Second Condition: High Price
Timeframe: 1H
```

**Take Profit Orders (LONG)**

```
Rule 1: Exit condition - Rectangle target reached
First Condition: Close Price
Timeframe: 1H
Operator: Greater Than
Second Condition: High Price
Timeframe: 1H

OR

Rule 2: Exit condition - Overbought warning
First Condition: RSI
Timeframe: 1H
Operator: Greater Than
Second Condition: Value
Value: 75
```

**Stop Loss Orders (LONG)**

```
Rule 1: Stop loss - False breakout (back inside rectangle)
First Condition: Close Price
Timeframe: 1H
Operator: Less Than
Second Condition: Low Price
Timeframe: 1H
```

#### 🔴 SHORT STRATEGY (Bearish Breakout)

{% hint style="success" %}
Rectangle generates **SHORT signals** when price breaks below support, especially when the prior trend was bearish.
{% endhint %}

**Base Entry Order (SHORT)**

```
Base Order Condition: Rectangle bearish breakout
First Condition: Rectangle
Timeframe: 1H

Additional Confirmation:
First Condition: Close Price
Timeframe: 1H  
Operator: Less Than
Second Condition: Low Price
Timeframe: 1H
```

**Take Profit Orders (SHORT)**

```
Rule 1: Exit condition - Rectangle target reached
First Condition: Close Price
Timeframe: 1H
Operator: Less Than
Second Condition: Low Price
Timeframe: 1H

OR

Rule 2: Exit condition - Oversold warning
First Condition: RSI
Timeframe: 1H
Operator: Less Than
Second Condition: Value
Value: 25
```

**Stop Loss Orders (SHORT)**

```
Rule 1: Stop loss - False breakout (back inside rectangle)
First Condition: Close Price
Timeframe: 1H
Operator: Greater Than
Second Condition: High Price
Timeframe: 1H
```

### Best Practices

#### For Both Strategies

{% hint style="success" %}

1. **Wait for breakout** - Don't enter before clear direction
2. **Volume confirmation** - Ensure high volume on breakout
3. **Trend context** - Consider prior trend direction
4. **False breakout protection** - Use stops inside rectangle
   {% endhint %}

#### Common Mistakes to Avoid

{% hint style="danger" %}

* **Early entry** - Entering before confirmed breakout
* **Volume ignored** - Trading without volume confirmation
* **False breakout** - Not protecting against failed breakouts
  {% endhint %}

### Market Conditions Analysis

| Market Type   | LONG Strategy Effectiveness   | SHORT Strategy Effectiveness  |
| ------------- | ----------------------------- | ----------------------------- |
| **Uptrend**   | 🟢 High (continuation likely) | 🟡 Medium (if breaks down)    |
| **Downtrend** | 🟡 Medium (if breaks up)      | 🟢 High (continuation likely) |
| **Ranging**   | 🟢 High (breakout potential)  | 🟢 High (breakout potential)  |

### Related Patterns

| Pattern          | Relationship         | Link                                                                                                       |
| ---------------- | -------------------- | ---------------------------------------------------------------------------------------------------------- |
| **Triangle**     | Similar continuation | [Triangle](https://docs.skyrexio.com/strategy-builder/built-in-conditions/chart-patterns/triangle)         |
| **Bullish Flag** | Continuation pattern | [Bullish Flag](https://docs.skyrexio.com/strategy-builder/built-in-conditions/chart-patterns/bullish-flag) |
| **Bearish Flag** | Continuation pattern | [Bearish Flag](https://docs.skyrexio.com/strategy-builder/built-in-conditions/chart-patterns/bearish-flag) |

### Conclusion

{% hint style="info" %}
Rectangle patterns are **directionally neutral** until breakout occurs. The strategy depends entirely on breakout direction and prior trend context. Most rectangles continue the prevailing trend direction.
{% endhint %}

#### Key Takeaways

{% hint style="success" %}

* **STRATEGY DEPENDS ON**: Breakout direction above or below rectangle
* **TREND CONTEXT**: Prior trend direction influences breakout probability
* **ALWAYS**: Confirm with volume and protect against false breakouts
  {% endhint %}

***

{% hint style="info" %}
**Ready to Build Your Own Strategy?**

Try our free AI-powered Strategy Builder at [app.skyrexio.com](https://app.skyrexio.com) and start creating professional trading strategies today. No coding required!
{% endhint %}
