OPEN-SOURCE SCRIPT
已更新 Grid Level Visualizer v1.0

Overview
This indicator draws a customizable grid of horizontal price levels directly on your chart. It's designed to help traders visualize potential support and resistance zones, manage grid trading strategies, or simply divide a price range into equal segments. The script offers interactive controls, extensive customization options, and alert functionality.
Key Features:
How to Use:
Notes:
This indicator draws a customizable grid of horizontal price levels directly on your chart. It's designed to help traders visualize potential support and resistance zones, manage grid trading strategies, or simply divide a price range into equal segments. The script offers interactive controls, extensive customization options, and alert functionality.
Key Features:
- Customizable Grid: Draws a grid based on user-defined Upper Price Bound and Lower Price Bound.
- Interactive Bounds: Easily adjust the Upper and Lower bounds by dragging the corresponding lines directly on the chart (click the line first to select, then drag). Bounds can also be set numerically in the settings.
- Adjustable Levels: Specify the total number of horizontal lines in the grid (Number of Grid Levels), including bounds.
- Custom Styling: Independently configure the color, width, and style (Solid, Dashed, Dotted) for the boundary lines and the intermediate grid lines.
- Price Labels: Optional display of price values for each grid level, positioned on the right side near the current bar.
Labels for boundary levels automatically inherit the boundary line colors.
Adjustable horizontal offset (Price Label Offset (X)) for labels.
Customizable text size (Text Size) and color (Price Text Color (Mid)) for mid-levels. - Grid Start Time: Define a specific date and time (Grid Start Time) from which the grid lines should start appearing on the chart (defaults to the beginning of the current month).
- Line Extension: Grid lines automatically extend to the right margin of the chart.
- Alert Condition: Provides a "Grid Level Cross" condition for creating custom alerts when price crosses any active grid level.
- Alert Toggle: An option (Enable Alert Condition?) in the settings to enable or disable the availability of the "Grid Level Cross" condition when creating alerts.
- Real-time Calculation: Uses calc_on_every_tick=true for responsive alert checking against the current price.
How to Use:
- Add the "Improved Grid Level Visualizer" indicator to your chart.
- Set Bounds: Adjust the Upper Price Bound and Lower Price Bound lines by clicking and dragging them on the chart, or set precise values in the indicator settings.
- Set Levels: Define the Number of Grid Levels you need in the settings.
- Set Start Time: Use the Grid Start Time input to control when the grid visualization begins.
- Customize: Configure colors, line styles, label visibility, etc., in the settings panel.
- Set Alerts (Optional): Follow the steps below.
Notes:
- The grid levels are calculated purely based on the mathematical division of the specified price range. They do not automatically adapt to market structure unless you manually adjust the bounds.
- When changing the Grid Start Time after the indicator has been running, you might need to refresh the chart or remove/re-add the indicator for the visual starting point to update correctly.
版本注释
OverviewThis indicator draws a customizable grid of horizontal price levels directly on your chart. It's designed to help traders visualize potential support and resistance zones, manage grid trading strategies, or simply divide a price range into equal segments. The script offers interactive controls, extensive customization options, and alert functionality.
Key Features:
- Customizable Grid: Draws a grid based on user-defined Upper Price Bound and Lower Price Bound.
- Interactive Bounds: Easily adjust the Upper and Lower bounds by dragging the corresponding lines directly on the chart (click the line first to select, then drag). Bounds can also be set numerically in the settings.
- Adjustable Levels: Specify the total number of horizontal lines in the grid (Number of Grid Levels), including bounds.
- Custom Styling: Independently configure the color, width, and style (Solid, Dashed, Dotted) for the boundary lines and the intermediate grid lines.
- Price Labels: Optional display of price values for each grid level, positioned on the right side near the current bar.
Labels for boundary levels automatically inherit the boundary line colors.
Adjustable horizontal offset (Price Label Offset (X)) for labels.
Customizable text size (Text Size) and color (Price Text Color (Mid)) for mid-levels. - Grid Start Time: Define a specific date and time (Grid Start Time) from which the grid lines should start appearing on the chart (defaults to the beginning of the current month).
- Line Extension: Grid lines automatically extend to the right margin of the chart.
- Alert Condition: Provides a "Grid Level Cross" condition for creating custom alerts when price crosses any active grid level.
- Alert Toggle: An option (Enable Alert Condition?) in the settings to enable or disable the availability of the "Grid Level Cross" condition when creating alerts.
- Real-time Calculation: Uses calc_on_every_tick=true for responsive alert checking against the current price.
How to Use:
- Add the "Improved Grid Level Visualizer" indicator to your chart.
- Set Bounds: Adjust the Upper Price Bound and Lower Price Bound lines by clicking and dragging them on the chart, or set precise values in the indicator settings.
- Set Levels: Define the Number of Grid Levels you need in the settings.
- Set Start Time: Use the Grid Start Time input to control when the grid visualization begins.
- Customize: Configure colors, line styles, label visibility, etc., in the settings panel.
- Set Alerts (Optional): Follow the steps below.
Notes:
- The grid levels are calculated purely based on the mathematical division of the specified price range. They do not automatically adapt to market structure unless you manually adjust the bounds.
- When changing the Grid Start Time after the indicator has been running, you might need to refresh the chart or remove/re-add the indicator for the visual starting point to update correctly.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。