OPEN-SOURCE SCRIPT

SMC OB + FVG ATR Pro v3

125
# SMC Order Blocks + FVG ATR Pro v3

**Smart Money Concepts | Order Blocks | Fair Value Gaps | Break of Structure | ATR-Based Filtering**

## Overview

SMC Order Blocks + FVG ATR Pro v3 is an advanced market structure indicator designed to identify potential institutional reaction zones using Smart Money Concepts (SMC).

The indicator combines **Order Blocks (OB), Fair Value Gaps (FVG), Break of Structure (BOS), and three independent ATR-based filters** into a single, customizable charting tool.

Its main objective is to help traders identify significant price areas, filter out weaker market structures, and maintain a clean visual representation of active supply and demand imbalances.

Designed for cryptocurrencies, forex, indices, and other liquid markets, the indicator can be used across multiple timeframes, including scalping, intraday trading, and swing trading.

## Key Features

### 1. Smart Money Order Blocks

Automatically detects bullish and bearish Order Blocks following a confirmed Break of Structure.

- **Bullish Order Blocks (Green):** Identify the last bearish candle before a qualifying bullish structure break.
- **Bearish Order Blocks (Red):** Identify the last bullish candle before a qualifying bearish structure break.
- Optional candle-body or full-wick zone calculation.
- Automatic zone extension until invalidation.
- Configurable invalidation using candle closes or wicks.
- First-retest detection and alerts.
- Overlapping zones of the same type are filtered.

### 2. Fair Value Gaps (FVG)

Automatically identifies three-candle price imbalances.

- **Bullish FVG (Cyan):** Detected when the current candle's low is above the high from two candles earlier.
- **Bearish FVG (Orange):** Detected when the current candle's high is below the low from two candles earlier.
- Optional momentum confirmation using the middle candle.
- Independent ATR-based minimum gap filtering.
- Automatic extension of active FVG zones.

FVG mitigation options include:

- **Full Fill:** Removes the zone after the gap has been completely filled.
- **50% Fill:** Removes the zone when its midpoint is reached.
- **First Touch:** Removes the zone upon the first qualifying interaction.

Mitigation can be calculated using candle wicks or closing prices.

### 3. Three Independent ATR Filters

One of the main features of this indicator is its volatility-adaptive filtering system.

**BOS ATR Filter**

Requires the structure-breaking candle body to meet a minimum ATR-based threshold.

**Order Block ATR Filter**

Filters Order Blocks according to their size relative to the ATR of the original OB candle.

Both minimum and maximum zone sizes are adjustable.

**FVG ATR Filter**

Requires the detected price gap to meet a minimum ATR-based size. An additional filter can validate the strength of the middle candle.

Each filter can be enabled or disabled independently, allowing traders to adjust detection sensitivity to different assets and market conditions.

### 4. Order Block + FVG Confluence

The indicator automatically detects overlapping bullish OB and bullish FVG zones, as well as overlapping bearish OB and bearish FVG zones.

Diamond markers highlight newly detected confluence conditions.

These areas represent the intersection of two technical structures and may be useful for identifying potential reaction zones.

Confluence is not automatically considered a trade entry signal.

### 5. Clean Chart Visualization

To improve readability, the indicator includes an adjustable horizontal zone extension.

- Move active zones and their text labels further to the right.
- Keep important candlestick formations visible.
- Customize bullish and bearish colors.
- Enable or disable FVG labels, BOS markers, and retest signals.
- Control the maximum number of active zones.

This is especially useful when multiple Order Blocks and Fair Value Gaps are present simultaneously.

### 6. TradingView Alerts

Built-in alert conditions are provided for:

- Bullish and bearish BOS
- New bullish and bearish Order Blocks
- New bullish and bearish FVGs
- First Order Block retests
- First FVG retests
- FVG mitigation events
- Bullish and bearish OB + FVG confluences

These alerts can help traders monitor important technical events without constantly watching their charts.

## Suggested Starting Settings

For BTCUSDT on the 15-minute timeframe:

| Parameter | Suggested Value |
|---|---|
| Pivot Length | 5 |
| ATR Length | 14 |
| BOS Body / ATR | 0.50 |
| OB Minimum Size / ATR | 0.30 |
| OB Maximum Size / ATR | 2.00 |
| FVG Minimum Gap / ATR | 0.30 |
| FVG Middle Body / ATR | 0.50 |
| FVG Mitigation | Full Fill |
| FVG Fill Detection | Wick |
| Zone Extension | 10 bars |

These settings are starting points for experimentation and have not been independently optimized or validated for profitability.

## How to Use

**Bullish scenario:**

Identify a bullish Break of Structure, locate the resulting bullish Order Block, and observe whether an active bullish FVG overlaps that area.

When price returns to the zone, look for additional confirmation from price action, market structure, or volume analysis.

**Bearish scenario:**

Identify a bearish Break of Structure and the corresponding bearish Order Block.

An overlapping bearish FVG may provide additional technical context. Monitor how price behaves when revisiting the zone.

## Important Notes

This indicator identifies algorithmically defined Order Blocks and Fair Value Gaps. It does not directly track institutional orders, order-book liquidity, or actual executed buy and sell order flow.

Structure pivots require confirmation, which introduces some detection delay. BOS and new FVG conditions are confirmed at candle close, while active zones continue to update as new price data becomes available.

The indicator is intended for technical analysis and educational purposes. It does not guarantee profitable trading signals and should be used with appropriate risk management.

---

**SMC Order Blocks + FVG ATR Pro v3**

*Combining market structure, volatility filtering, and price imbalances into one streamlined technical analysis tool.*

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.