OPEN-SOURCE SCRIPT

Round Number Analyzer v3

88
Round Number Analyzer v3 is an indicator designed to analyze how price interacts with round number levels (levels spaced at fixed intervals in points or pips).
The indicator does not generate entry/exit signals, but provides detailed statistics to better understand market dynamics around these key levels.

✨ Key Features

Cross Counting: detects every time the price crosses a round number level (up = Long, down = Short).

Continuations & Reversals: classifies each cross as:
Continuation: the move continues in the same direction as the previous sequence.
Reversal: the move changes direction compared to the previous sequence.

Sequence Classification (L1…L5+): each level is labelled based on its position within the consecutive cross sequence:

L1 = first level of the sequence,
L2 = second consecutive,

L5+ = fifth or higher.

Comprehensive Stats Table (top right corner):

Total crosses (Long, Short, Totals).
Total continuations + breakdown by L1…L5+.
Total reversals + breakdown by L1…L5+.
Percentages calculated against the proper denominator, displayed directly inside the cells next to the absolute values.
Date range of analysis (user-defined).

Customizable Step: Works in both points and pips, making the indicator suitable for indices and forex.

⚙️ Main Inputs

Start date / End date → sets the analysis period.
Step mode → Points or Pips.
Step value → distance between round levels.
Pip size → pip size (default = 0.0001, typical for forex).

📈 How to Interpret

A high continuation percentage after L1–L2 suggests the market tends to extend multiple times beyond the first breakout levels.
Higher reversal percentages at advanced levels (L4–L5+) may signal trend exhaustion.
The analysis helps estimate the probability of continuation or reversal depending on how many consecutive levels have already been crossed.

🔎 Practical Applications

Support for breakout or mean-reversion strategies.
Comparative analysis across different markets (e.g. indices vs forex) or different time periods.

📝 Notes

The indicator is timeframe-robust, as it accounts for multiple steps within the same candle, ensuring results do not depend on the selected timeframe (except for TradingView’s historical data limits).

It does not provide automatic trading signals, but serves as a quantitative analysis tool to refine your strategies.

---

Round Number Analyzer v3 è un indicatore pensato per analizzare come il prezzo interagisce con i livelli di round number (livelli a distanza fissa in punti o pips).
L’indicatore non genera segnali di ingresso/uscita, ma fornisce statistiche dettagliate utili per comprendere la dinamica del mercato attorno a questi livelli.

✨ Funzionalità principali

Conteggio dei Cross: rileva ogni volta che il prezzo attraversa un livello round (verso l’alto = Long, verso il basso = Short).

Continuations & Reversals: classifica ogni attraversamento come:

Continuation: il movimento prosegue nella stessa direzione della sequenza precedente.

Reversal: il movimento inverte la direzione rispetto alla sequenza precedente.

Classificazione per sequenza (L1…L5+): ogni livello è etichettato in base alla sua posizione nella sequenza di cross consecutivi:

L1 = primo livello della sequenza,
L2 = secondo consecutivo,

L5+ = quinto o superiore.

Statistiche complete in tabella (in alto a destra):

Cross totali (Long, Short, Totals).
Continuations totali + breakdown per L1…L5+.
Reversals totali + breakdown per L1…L5+.
Percentuali calcolate sul denominatore corretto, mostrate direttamente dentro le celle accanto ai valori assoluti.
Date range di analisi (impostabile dall’utente).

Step personalizzabile: puoi lavorare sia in punti che in pips, così l’indicatore è adatto sia per indici che per forex.

⚙️ Input principali

Start date / End date → imposta l’intervallo temporale di analisi.

Step mode → punti o pips.

Step value → ampiezza tra i livelli round.

Pip size → dimensione del pip (default = 0.0001, tipico per il forex).

📈 Come interpretarlo

Una percentuale di continuation molto alta dopo L1–L2 indica che il mercato tende a proseguire più volte oltre i primi livelli di breakout.
Percentuali di reversal più elevate nei livelli avanzati (L4–L5+) possono suggerire esaurimento della spinta.

L’analisi permette di stimare la probabilità che un movimento in corso continui o si inverta in base a quanti livelli sono già stati attraversati consecutivamente.

🔎 Applicazioni pratiche

Supporto per strategie di breakout o mean reversion.
Analisi comparativa tra mercati (es. indici vs forex) o tra periodi temporali diversi.

📝 Note

L’indicatore è timeframe-robust: il conteggio tiene conto di multipli step dentro la stessa candela, così i risultati non dipendono dal timeframe scelto (salvo i limiti di caricamento storico di TradingView).

Non fornisce segnali operativi automatici, ma è un tool di analisi quantitativa per affinare le proprie strategie.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.