OPEN-SOURCE SCRIPT
Round Level Pro Stats

Here is a professional English description of your indicator, which you can use for your own records or if you ever want to share it on the TradingView Community Scripts:
Indicator Name: Dynamic Round Levels & Historical Strength Grid
Overview
This indicator is a sophisticated technical analysis tool designed to identify and evaluate "Round Number" psychological levels (e.g., 1.17100, 1.17200, 1.17300). Unlike a static grid, this tool actively scans historical data to provide a "Strength Score" for each level, helping traders distinguish between minor price points and significant historical reaction zones.
Key Features
Automated Price Grid: Generates a clean, horizontal grid based on user-defined price intervals (Steps). Perfect for Forex (0.001 pips), Stocks, or Crypto.
Historical Strength Engine: Analyzes up to 5,000 historical bars to calculate how "respected" a price level is.
The "3-Candle Confirmation" Logic: A level's strength is only increased if the price touches the line and successfully reverses/bounces, staying on the same side for at least 3 subsequent candles.
Smart Visual Coding:
Green (High Strength): Levels with >60% historical reversal success.
Orange (Medium Strength): Levels with 35%–60% success.
Red (Low Strength): Levels frequently breached without reaction.
Pro HUD Display: Bold percentage labels are positioned at the far right of the chart (near the price scale) to keep the main trading area clutter-free.
How to Use
Set your Step: For Forex, use 0.001 to see 10-pip increments. For Bitcoin or Gold, use 10 or 100.
Lookback Period: Adjust the history scan (up to 5,000 bars) to match your trading timeframe.
Identify Support/Resistance: Look for Green % STR labels. These represent "Round Numbers" that have acted as strong barriers in the past, offering higher-probability entry or exit points.
Technical Summary for Pine Script
Language: Pine Script v5
Max Lines/Labels: 500 (Optimized for performance)
Placement: Far-right margin alignment using bar_index offsets.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.