OPEN-SOURCE SCRIPT
Обновлено

Rejection Blocks [ICT]

2 254
# Rejection Blocks [ICT]

**Rejection Blocks [ICT]** is a price action indicator designed to identify significant rejection candles and automatically draw dynamic bullish and bearish rejection zones.

The indicator detects swing highs and swing lows, then filters them using wick-to-body ratio and ATR distance to eliminate weak or insignificant signals. Only high-quality rejection candles are used to create support and resistance blocks.

### Features

* Automatic Bullish and Bearish Rejection Block detection
* Swing High / Swing Low based structure analysis
* Adjustable Wick-to-Body Ratio filter
* ATR-based significance filter to reduce market noise
* Dynamic block extension until invalidation
* Optional 50% midpoint line inside each block
* Customizable block colors, borders, and label sizes

### Retest Signals

When price revisits an active rejection block, the indicator generates a confirmation signal:

* **Retest Buy** → Price retests a Bullish Rejection Block.
* **Retest Sell** → Price retests a Bearish Rejection Block.

The retest distance can be adjusted using an ATR-based buffer, allowing either precise touches or more flexible retests.

### Break Signals

The indicator can also detect when price completely breaks through an active rejection block.

* **Break Buy** → Price closes above a Bearish Rejection Block.
* **Break Sell** → Price closes below a Bullish Rejection Block.

These signals indicate that the previous rejection zone has failed and market structure may be shifting.

### Alerts

Built-in alert conditions include:

* Bullish Rejection Block Formed
* Bearish Rejection Block Formed
* Retest Buy
* Retest Sell
* Break Buy
* Break Sell
* Any Buy Signal
* Any Sell Signal
* Any Rejection Block Signal

### Customization

The indicator offers extensive customization options, including:

* Swing Strength
* Wick-to-Body Ratio
* ATR Filter
* ATR Retest Distance
* Bullish / Bearish Block Visibility
* Block Colors
* Border Visibility & Width
* Midline Display
* Label Size

### How to Use

Bullish blocks often act as potential demand zones where buyers may re-enter after a pullback.

Bearish blocks often act as potential supply zones where sellers may become active after a retracement.

For best results, use the indicator together with market structure, trend analysis, liquidity concepts, and proper risk management rather than relying solely on individual signals.

**Note:** No indicator can predict the market with complete accuracy. Always confirm signals with your own trading strategy and risk management rules.
Информация о релизе
## Break Signals & Trading Logic

The latest version includes **Break Signals** in addition to the existing Retest Signals.

**Retest Signals** are intended to be used as the primary entry signals:

* **Retest Buy** → Long Entry
* **Retest Sell** → Short Entry

**Break Signals** are designed primarily as **exit signals**, not entry signals.

If you are already in a trade following a Retest signal, an opposite Break signal indicates that the rejection block has failed and can be used as an early exit from the position.

Example:

* Enter a **Long** position on a **Retest Buy** signal.
* If a **Break Sell** signal appears afterward, consider closing the Long position.

Likewise:

* Enter a **Short** position on a **Retest Sell** signal.
* If a **Break Buy** signal appears afterward, consider closing the Short position.

This workflow helps traders stay in valid rejection trades while providing a clear exit when the market invalidates the rejection zone.

## Alerts

The indicator includes a complete set of built-in alerts:

* Bullish Rejection Block Formed
* Bearish Rejection Block Formed
* Retest Buy
* Retest Sell
* Break Buy
* Break Sell
* Any Buy Signal
* Any Sell Signal
* Any Rejection Block Signal

These alert conditions make the indicator fully compatible with TradingView Alerts, webhooks, and automated trading systems.

## Bot Compatibility

The indicator is **bot-friendly** and suitable for automated trading.

All trading signals are available through TradingView's built-in alert system, making it easy to integrate with webhook services, trading bots, and third-party automation platforms.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.