OPEN-SOURCE SCRIPT
تم تحديثه

Grid Level Visualizer v1.0

138
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:
  • 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:
  1. Add the "Improved Grid Level Visualizer" indicator to your chart.
  2. 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.
  3. Set Levels: Define the Number of Grid Levels you need in the settings.
  4. Set Start Time: Use the Grid Start Time input to control when the grid visualization begins.
  5. Customize: Configure colors, line styles, label visibility, etc., in the settings panel.
  6. 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.
ملاحظات الأخبار
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:
  • 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:
  1. Add the "Improved Grid Level Visualizer" indicator to your chart.
  2. 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.
  3. Set Levels: Define the Number of Grid Levels you need in the settings.
  4. Set Start Time: Use the Grid Start Time input to control when the grid visualization begins.
  5. Customize: Configure colors, line styles, label visibility, etc., in the settings panel.
  6. 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. اقرأ المزيد في شروط الاستخدام.