PROTECTED SOURCE SCRIPT

Pattern Match & Forward Projection (v5.7)

24
快照Pattern Match & Forward Projection – come funziona davvero questo indicatore 🔍📈
Ciao a tutti!
Oggi vi presento un indicatore che ho sviluppato e che sto testando da tempo: Pattern Match & Forward Projection.
L’idea è semplice: se il mercato tende a ripetere strutture simili, allora possiamo cercare nel passato i “fratelli gemelli” del movimento attuale e proiettarne il possibile sviluppo nei giorni successivi.
🔧 Come funziona
Analisi storica: l’indicatore scansiona il grafico indietro nel tempo (es. 750 giorni di lookback).
Ricerca dei match: viene confrontato l’andamento degli ultimi giorni con tutte le sequenze precedenti.
Filtraggio: il sistema tiene solo i match che hanno un certo livello di somiglianza (definita dalla distanza media).
Forward projection: da questi match, calcola come si sono mossi i prezzi nei giorni successivi e costruisce una curva media giornaliera (forward path).
📊 Cosa mostrano i dati
Nel box laterale trovate:
Match trovati → quante sequenze simili sono state individuate.
Distanza media → quanto i match assomigliano al pattern attuale (più è bassa, meglio è).
Media R(+10) → rendimento medio dopo 10 giorni.
Hit% → la percentuale di volte in cui il rendimento è stato positivo.
Curva media → la progressione giorno per giorno: +1d, +2d, … fino a +10d.
⚙️ Come regolare i filtri
Lookback (giorni): quanti giorni nel passato scansionare. Più alto → più campioni, ma anche meno “puri”.
Soglia distanza: stabilisce la tolleranza di somiglianza. Una soglia bassa → match più simili ma meno numerosi.
Hit% richiesta: imposta la percentuale minima di successi per validare un pattern (es. 50%).
Return filter: filtro sul rendimento medio richiesto (es. almeno +1%).
✅ Vantaggi
Vi dà una statistica concreta, non solo un “pattern a occhio”.
Permette di stimare probabilità e magnitudo attesa di un movimento.
È totalmente adattabile al vostro stile (più stretto e selettivo, o più ampio e inclusivo).
⚠️ Limiti
Non è un “oracolo”: ogni forward projection è una media statistica, non una certezza.
Va usato insieme ad altre analisi (volumi, livelli tecnici, macro, ecc.) e sempre con gestione del rischio.
👉 Fatemi sapere nei commenti come vi piacerebbe usare questo strumento: più per il breve periodo (1–5 giorni) o per una visione più lunga (10–20 giorni)?

Pattern Match & Forward Projection – how this indicator really works 🔍📈
Hi everyone!
Today I want to share an indicator I’ve been developing and testing: Pattern Match & Forward Projection.
The idea is simple: if markets tend to repeat similar structures, we can search the past for “twin brothers” of the current move and project their possible outcomes into the next days.
🔧 How it works
Historical scan: the indicator looks back through the chart (e.g. 750 days).
Pattern matching: it compares the recent price sequence with all past ones.
Filtering: only matches that meet a certain similarity threshold (average distance) are kept.
Forward projection: from these matches, it calculates how price moved in the following days and builds a daily average forward curve.
📊 What the data shows
In the side panel you’ll find:
Matches found → number of similar sequences detected.
Average distance → how close the matches are to the current pattern (lower = better).
Mean R(+10) → average return after 10 days.
Hit% → percentage of times the return was positive.
Forward curve → expected progression day by day: +1d, +2d … up to +10d.
⚙️ How to tune the filters
Lookback (days): how far back in history to search. Higher = more samples, but less “pure”.
Distance threshold: tolerance of similarity. Lower = closer matches but fewer of them.
Hit% requirement: minimum success rate to validate a pattern (e.g. 50%).
Return filter: minimum average return required (e.g. ≥ +1%).
✅ Advantages
Provides statistical evidence, not just a visual guess.
Estimates both probability and expected magnitude of a move.
Fully adjustable to your trading style (tight & selective or broad & inclusive).
⚠️ Limitations
This is not an oracle: each forward projection is a statistical average, not a guarantee.
It should always be combined with other analysis (volume, key levels, macro context) and proper risk management.
👉 Let me know in the comments how you’d use this tool: more for the short term (1–5 days) or for a longer outlook (10–20 days)?

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。