OPEN-SOURCE SCRIPT

DR/IDR + S&D

962
English Description

DR/IDR + S&D is a multi-purpose market structure indicator designed for Forex traders.
It automatically plots DR / IDR (Daily Range / Initial Daily Range) zones while also detecting momentum-based Supply & Demand areas.

This indicator is especially useful for:

London / New York session trading,
intraday scalping,
liquidity sweeps,
breakout and mean reversion strategies.
Features

✔ Automatic DR / IDR boxes
✔ RDR / ADR / ODR session support
✔ Custom timezone settings
✔ Momentum-based Supply & Demand detection
✔ Automatic mitigation cleanup for used zones
✔ Zone size filtering system
✔ Maximum active zone limit for performance optimization
✔ DR midpoint (0.5) level plotting

DR / IDR Logic
DR (Daily Range) → Full session high-low range
IDR (Initial Daily Range) → Candle body based initial session range

Users can switch between DR and IDR visualization.

Supply & Demand Logic

The indicator analyzes strong momentum moves to automatically identify:

demand zones after aggressive bullish expansions,
supply zones after aggressive bearish expansions.

Once price mitigates a zone, the area becomes inactive automatically.

Best Usage
1m / 3m / 5m charts
Major Forex pairs
Session-based trading strategies
Liquidity + market structure concepts
Note

This indicator is non-repainting.
All zone calculations are confirmed only after candle close (barstate.isconfirmed).

⚠️ This indicator is designed solely as a technical analysis tool and does not constitute financial or investment advice.
All trading decisions and associated risks remain the sole responsibility of the user.

Türkçe Açıklama

DR/IDR + S&D, Forex piyasaları için geliştirilmiş çok amaçlı bir piyasa yapısı indikatörüdür.
Bu araç; DR / IDR (Daily Range / Initial Daily Range) bölgelerini otomatik olarak oluştururken aynı zamanda momentum bazlı Supply & Demand (Arz / Talep) alanlarını da tespit eder.

İndikatör özellikle:

London / New York session işlemleri,
intraday scalping,
liquidity sweep,
breakout ve mean reversion stratejileri
için optimize edilmiştir.
Özellikler

✔ Otomatik DR / IDR kutuları
✔ RDR / ADR / ODR session desteği
✔ Özelleştirilebilir timezone ayarı
✔ Momentum bazlı Supply & Demand zone tespiti
✔ Mitigated (çalışmış) bölgelerin otomatik temizlenmesi
✔ Zone genişliği filtreleme sistemi
✔ Performans optimizasyonu için maksimum aktif zone limiti
✔ DR midpoint (0.5) seviyesi çizimi

DR / IDR Mantığı
DR (Daily Range) → Session boyunca oluşan tam high-low aralığı
IDR (Initial Daily Range) → Session içerisindeki candle body bazlı başlangıç aralığı

Kullanıcı isterse DR veya IDR görünümünü seçebilir.

Supply & Demand Mantığı

İndikatör güçlü momentum hareketlerini analiz ederek:

hızlı yükselişlerden sonra oluşan demand bölgelerini,
hızlı düşüşlerden sonra oluşan supply bölgelerini
otomatik olarak işaretler.

Fiyat ilgili bölgeyi mitigate ettiğinde (tekrar test ettiğinde), zone pasif hale getirilir.

En İyi Kullanım
1m / 3m / 5m grafikler
Forex majör pariteleri
Session bazlı işlem stratejileri
Liquidity + market structure kombinasyonları
Not

Bu indikatör repaint yapmaz.
Zone oluşumları yalnızca candle kapanışı onaylandıktan sonra oluşturulur (barstate.isconfirmed).

⚠️ Bu indikatör yalnızca teknik analiz amacıyla geliştirilmiş yardımcı bir araçtır.
Herhangi bir yatırım tavsiyesi içermez. İşlem kararları ve oluşabilecek riskler tamamen kullanıcı sorumluluğundadır.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.