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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。