OPEN-SOURCE SCRIPT

Tetris MARKET

266
🧩 Market Tetris Grid – Multi-Factor Market Structure Model

This indicator is a multi-layer market structure visualization system that combines volatility, momentum, volume flow, and trend direction into a unified “block-based” framework inspired by Tetris logic.

The purpose of this model is not to generate isolated signals, but to visualize the internal strength and alignment of market forces in real time.

🔬 CORE MATHEMATICAL STRUCTURE

The system is built on six independent market components:

1. ATR (Volatility Engine – Enhanced / Super ATR Concept)

The ATR component is not used in its standard form only.
Instead, it is normalized and interpreted as a relative volatility expansion engine.

It measures:

Market range expansion
Volatility pressure compared to historical average
Structural movement intensity

This is part of a broader “multi-source volatility interpretation” approach, where ATR is combined with range and true range behavior to represent real market energy rather than simple average true range.

2. Delta (Price Pressure)

Delta represents raw directional price movement:

Positive delta → buying pressure
Negative delta → selling pressure

It captures immediate micro-directional momentum of price.

3. OBV (Volume Flow Engine)

OBV is implemented in a stable cumulative form:

Volume is added on upward closes
Subtracted on downward closes

This reflects net capital flow direction rather than raw volume.

4. Momentum (Rate of Change)

Momentum is calculated using rate-of-change logic:

Measures speed of price movement
Identifies acceleration or deceleration phases
5. Volatility Ratio

Volatility is normalized using ATR relative to its moving average:

Detects expansion vs compression phases
Identifies structural volatility regime shifts
6. Trend Structure

Trend is defined as the difference between short and medium EMAs:

Represents directional bias
Filters noise from raw price movement
🧠 SCORING & PROBABILITY MODEL

All six components are normalized and aggregated into a unified score:

Positive score → bullish market bias
Negative score → bearish market bias

This score is then converted into:

Bullish Probability (%)
Bearish Probability (%)

The probability is not predictive in isolation, but represents multi-factor alignment strength across market dimensions.

🧱 VISUAL MODEL (TETRIS GRID LOGIC)

Each column represents one market force:

ATR / Delta / OBV / Momentum / Volatility / Trend

Block height reflects intensity, allowing visual detection of:

Market expansion zones
Compression phases
Directional imbalance
Structural alignment or divergence
⚠️ INTENDED USE

This indicator is designed for:

Market structure analysis
Trend strength visualization
Multi-factor confirmation
Institutional-style flow interpretation

It is not intended to be a standalone buy/sell system.

🇹🇷 TÜRKÇE AÇIKLAMA (RESMİ)
🧩 Market Tetris Grid – Çok Faktörlü Piyasa Yapı Modeli

Bu indikatör, volatilite, momentum, hacim akışı ve trend yönünü tek bir “blok tabanlı yapı” içinde birleştiren çok katmanlı bir piyasa görselleştirme sistemidir.

Amaç, tekil sinyal üretmek değil; piyasanın içsel güç dağılımını ve uyumunu gerçek zamanlı olarak görselleştirmektir.

🔬 TEMEL MATEMATİK YAPI

Sistem 6 ana piyasa bileşeni üzerine kuruludur:

1. ATR (Geliştirilmiş Volatilite Motoru – “Super ATR” Mantığı)

ATR sadece klasik haliyle kullanılmaz.

Bunun yerine:

normalize edilir
geçmiş ortalamalara göre göreceli gücü ölçülür
piyasa genişleme enerjisi olarak yorumlanır

Bu yapı, standart ATR’den farklı olarak:
👉 “çok kaynaklı volatilite yorumlama modeli” içerir.

Yani sadece ortalama gerçek aralık değil, piyasanın enerji artışı / daralması analiz edilir.

2. Delta (Fiyat Baskısı)

Delta, fiyatın anlık yönlü hareketini temsil eder:

Pozitif delta → alım baskısı
Negatif delta → satım baskısı
3. OBV (Hacim Akışı)

OBV şu mantıkla çalışır:

kapanış yukarıysa hacim eklenir
kapanış aşağıysa hacim çıkarılır

Bu yapı net para akış yönünü gösterir.

4. Momentum

Momentum, fiyat değişim hızını ölçer:

hızlanma / yavaşlama tespiti yapar
5. Volatilite Oranı

ATR’nin kendi ortalamasına oranı alınır:

piyasa sıkışma / genişleme tespiti
rejim değişimi analizi
6. Trend Yapısı

Kısa ve orta EMA farkı alınır:

yönlü bias üretir
gürültüyü filtreler
🧠 SKOR VE OLASILIK MODELİ

6 bileşen normalize edilerek tek bir skor oluşturur:

pozitif skor → bullish baskı
negatif skor → bearish baskı

Bu skor daha sonra:

Bullish %
Bearish %

olarak olasılığa çevrilir.

Bu değer tek başına tahmin değil, çoklu piyasa faktörlerinin hizalanma gücünü gösterir.

🧱 GÖRSEL MODEL (TETRIS MANTIĞI)

Her sütun bir piyasa gücünü temsil eder:

ATR / Delta / OBV / Momentum / Volatilite / Trend

Blok yüksekliği, ilgili faktörün gücünü gösterir.

Bu sayede:

genişleme bölgeleri
sıkışma alanları
yönsel dengesizlik
yapısal uyum / ayrışma

görsel olarak analiz edilebilir.

⚠️ KULLANIM AMACI

Bu indikatör:

piyasa yapısı analizi
trend gücü ölçümü
çok faktörlü doğrulama
kurumsal akış yorumlama

için tasarlanmıştır.

Tek başına al/sat sistemi değildir.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.