OPEN-SOURCE SCRIPT
Candlestick Footprints

This layer builds the structural backbone of the indicator using confirmed market pivots.
Code behavior:
ta.pivothigh() detects swing highs
ta.pivotlow() detects swing lows
Both require confirmation (pivotLen delay), so they are non-repainting but lagging
Memory system:
The variables:
p1, p2, p3, p4
store the last four pivot points in sequence.
Each new pivot shifts the structure forward:
p1 → p2 → p3 → p4
Purpose:
This creates a market structural memory, allowing the system to analyze movement sequences instead of single candles.
2. CORE PROJECTION LAYER
This layer generates a directional projection based on the last impulse.
Core logic:
move = p4 - p3
proj = p4 + move
Interpretation:
The system assumes that:
the last impulse leg may repeat in magnitude
So it projects a mirrored movement forward from the last pivot.
Nature of this model:
This is a mirror impulse projection model, not a predictive statistical model.
It assumes structural repetition in price behavior.
3. CLUSTERING LAYER (CORE INTELLIGENCE)
This is the most important layer of the system.
It groups similar projected levels into liquidity zones.
Data structures:
bullMid / bullCnt → bullish clusters
bearMid / bearCnt → bearish clusters
Clustering logic:
If a new projection is close to an existing one:
abs(proj - old) < ATR * tolerance
Then:
the cluster count increases
the zone center is recalculated (averaged)
the liquidity zone becomes stronger
Outcome:
Repeated projections create:
liquidity magnet zones (price attraction areas)
4. VISUALIZATION LAYER
This layer is purely graphical.
Tools used:
box.new() for zones
label.new() for cluster information
Bull zones:
Aqua = weak bullish flow
Lime = strong bullish accumulation
Bear zones:
Red = bearish pressure zones
Important:
This layer does NOT generate trading signals.
It only visualizes clustered market structure.
5. DIRECTION LOGIC LAYER
Direction is determined by projection comparison:
isBull = proj > p4
isBear = proj < p4
Meaning:
If projection is above last pivot → bullish structure
If below → bearish structure
This is a structural direction classifier, not a momentum oscillator.
6. SYSTEM PHILOSOPHY
This indicator is not based on traditional technical indicators.
It does NOT use:
Moving averages
RSI
MACD
Instead, it focuses on:
structural repetition
pivot-based memory
clustering of projected price levels
Core idea:
Markets tend to revisit structurally repeated zones rather than random levels.
7. FINAL SYSTEM OUTPUT
The system produces:
Liquidity zones
Cluster strength (count-based)
Directional bias (bull/bear)
Visual heatmap of price memory
Final interpretation:
This is a structural probability map of where price tends to accumulate and react.
🇹🇷 TÜRKÇE AÇIKLAMA (TAM KATMANLI)
1. PIVOT YAPISI KATMANI
Bu katman sistemin iskeletini oluşturur ve piyasa pivotlarını kullanır.
Çalışma mantığı:
ta.pivothigh() swing high noktalarını bulur
ta.pivotlow() swing low noktalarını bulur
Pivotlar onaylıdır, bu yüzden gecikmelidir ama repaint yapmaz
Hafıza sistemi:
p1, p2, p3, p4
son 4 pivotu saklar.
Her yeni pivot geldiğinde yapı kayar:
p1 → p2 → p3 → p4
Amaç:
Bu yapı, tek mum değil:
piyasanın hareket dizisini analiz eden bir hafıza sistemi oluşturur
2. PROJEKSİYON KATMANI
Bu katman son hareketi baz alarak ileri projeksiyon üretir.
Temel hesap:
move = p4 - p3
proj = p4 + move
Mantık:
Sistem şunu varsayar:
son impuls hareket tekrar edebilir
Bu yüzden aynı hareketi ileri taşır.
Model tipi:
Bu bir:
ayna hareket projeksiyon modelidir
3. CLUSTER (KÜMELEME) KATMANI
Sistemin en önemli kısmıdır.
Benzer projeksiyonları aynı bölgede toplar.
Veri yapıları:
bullMid / bullCnt → bullish bölgeler
bearMid / bearCnt → bearish bölgeler
Çalışma mantığı:
Eğer yeni proje eski bölgeye yakınsa:
abs(proj - old) < ATR toleransı
Şunlar olur:
cluster sayısı artar
merkez yeniden hesaplanır
bölge güçlenir
Sonuç:
Tekrarlanan fiyat bölgeleri:
likidite mıknatıs alanları oluşturur
4. GÖRSELLEŞTİRME KATMANI
Bu katman sadece görsel sunum yapar.
Araçlar:
box.new() → zone çizimi
label.new() → bilgi etiketi
Bull bölgeler:
Aqua = zayıf bullish akış
Lime = güçlü bullish birikim
Bear bölgeler:
Red = satış baskısı
Önemli:
Bu katman sinyal üretmez.
Sadece yapıyı görselleştirir.
5. YÖN MANTIĞI KATMANI
Yön projeksiyona göre belirlenir:
isBull = proj > p4
isBear = proj < p4
Anlamı:
yukarı projeksiyon → bullish yapı
aşağı projeksiyon → bearish yapı
Bu bir momentum değil:
yapısal yön sınıflandırmasıdır
6. SİSTEM FELSEFESİ
Bu indicator klasik teknik analiz değildir.
Şunları kullanmaz:
MA (hareketli ortalama)
RSI
MACD
Bunun yerine:
piyasa tekrarları
pivot hafızası
cluster davranışı
kullanır.
Temel fikir:
Piyasa rastgele değil:
belirli yapısal bölgeleri tekrar ziyaret eder
7. SONUÇ
Sistem şunları üretir:
likidite bölgeleri
cluster gücü
yön biası (bull/bear)
fiyatın hafıza haritası
Final yorum:
Bu sistem fiyatın nerede reaksiyon verme ihtimalinin yüksek olduğunu gösteren yapısal bir olasılık haritasıdır.
Code behavior:
ta.pivothigh() detects swing highs
ta.pivotlow() detects swing lows
Both require confirmation (pivotLen delay), so they are non-repainting but lagging
Memory system:
The variables:
p1, p2, p3, p4
store the last four pivot points in sequence.
Each new pivot shifts the structure forward:
p1 → p2 → p3 → p4
Purpose:
This creates a market structural memory, allowing the system to analyze movement sequences instead of single candles.
2. CORE PROJECTION LAYER
This layer generates a directional projection based on the last impulse.
Core logic:
move = p4 - p3
proj = p4 + move
Interpretation:
The system assumes that:
the last impulse leg may repeat in magnitude
So it projects a mirrored movement forward from the last pivot.
Nature of this model:
This is a mirror impulse projection model, not a predictive statistical model.
It assumes structural repetition in price behavior.
3. CLUSTERING LAYER (CORE INTELLIGENCE)
This is the most important layer of the system.
It groups similar projected levels into liquidity zones.
Data structures:
bullMid / bullCnt → bullish clusters
bearMid / bearCnt → bearish clusters
Clustering logic:
If a new projection is close to an existing one:
abs(proj - old) < ATR * tolerance
Then:
the cluster count increases
the zone center is recalculated (averaged)
the liquidity zone becomes stronger
Outcome:
Repeated projections create:
liquidity magnet zones (price attraction areas)
4. VISUALIZATION LAYER
This layer is purely graphical.
Tools used:
box.new() for zones
label.new() for cluster information
Bull zones:
Aqua = weak bullish flow
Lime = strong bullish accumulation
Bear zones:
Red = bearish pressure zones
Important:
This layer does NOT generate trading signals.
It only visualizes clustered market structure.
5. DIRECTION LOGIC LAYER
Direction is determined by projection comparison:
isBull = proj > p4
isBear = proj < p4
Meaning:
If projection is above last pivot → bullish structure
If below → bearish structure
This is a structural direction classifier, not a momentum oscillator.
6. SYSTEM PHILOSOPHY
This indicator is not based on traditional technical indicators.
It does NOT use:
Moving averages
RSI
MACD
Instead, it focuses on:
structural repetition
pivot-based memory
clustering of projected price levels
Core idea:
Markets tend to revisit structurally repeated zones rather than random levels.
7. FINAL SYSTEM OUTPUT
The system produces:
Liquidity zones
Cluster strength (count-based)
Directional bias (bull/bear)
Visual heatmap of price memory
Final interpretation:
This is a structural probability map of where price tends to accumulate and react.
🇹🇷 TÜRKÇE AÇIKLAMA (TAM KATMANLI)
1. PIVOT YAPISI KATMANI
Bu katman sistemin iskeletini oluşturur ve piyasa pivotlarını kullanır.
Çalışma mantığı:
ta.pivothigh() swing high noktalarını bulur
ta.pivotlow() swing low noktalarını bulur
Pivotlar onaylıdır, bu yüzden gecikmelidir ama repaint yapmaz
Hafıza sistemi:
p1, p2, p3, p4
son 4 pivotu saklar.
Her yeni pivot geldiğinde yapı kayar:
p1 → p2 → p3 → p4
Amaç:
Bu yapı, tek mum değil:
piyasanın hareket dizisini analiz eden bir hafıza sistemi oluşturur
2. PROJEKSİYON KATMANI
Bu katman son hareketi baz alarak ileri projeksiyon üretir.
Temel hesap:
move = p4 - p3
proj = p4 + move
Mantık:
Sistem şunu varsayar:
son impuls hareket tekrar edebilir
Bu yüzden aynı hareketi ileri taşır.
Model tipi:
Bu bir:
ayna hareket projeksiyon modelidir
3. CLUSTER (KÜMELEME) KATMANI
Sistemin en önemli kısmıdır.
Benzer projeksiyonları aynı bölgede toplar.
Veri yapıları:
bullMid / bullCnt → bullish bölgeler
bearMid / bearCnt → bearish bölgeler
Çalışma mantığı:
Eğer yeni proje eski bölgeye yakınsa:
abs(proj - old) < ATR toleransı
Şunlar olur:
cluster sayısı artar
merkez yeniden hesaplanır
bölge güçlenir
Sonuç:
Tekrarlanan fiyat bölgeleri:
likidite mıknatıs alanları oluşturur
4. GÖRSELLEŞTİRME KATMANI
Bu katman sadece görsel sunum yapar.
Araçlar:
box.new() → zone çizimi
label.new() → bilgi etiketi
Bull bölgeler:
Aqua = zayıf bullish akış
Lime = güçlü bullish birikim
Bear bölgeler:
Red = satış baskısı
Önemli:
Bu katman sinyal üretmez.
Sadece yapıyı görselleştirir.
5. YÖN MANTIĞI KATMANI
Yön projeksiyona göre belirlenir:
isBull = proj > p4
isBear = proj < p4
Anlamı:
yukarı projeksiyon → bullish yapı
aşağı projeksiyon → bearish yapı
Bu bir momentum değil:
yapısal yön sınıflandırmasıdır
6. SİSTEM FELSEFESİ
Bu indicator klasik teknik analiz değildir.
Şunları kullanmaz:
MA (hareketli ortalama)
RSI
MACD
Bunun yerine:
piyasa tekrarları
pivot hafızası
cluster davranışı
kullanır.
Temel fikir:
Piyasa rastgele değil:
belirli yapısal bölgeleri tekrar ziyaret eder
7. SONUÇ
Sistem şunları üretir:
likidite bölgeleri
cluster gücü
yön biası (bull/bear)
fiyatın hafıza haritası
Final yorum:
Bu sistem fiyatın nerede reaksiyon verme ihtimalinin yüksek olduğunu gösteren yapısal bir olasılık haritasıdır.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。