OPEN-SOURCE SCRIPT
已更新 Fixed Gap Price Levels

Indicator Description:
The Fixed Gap Price Levels indicator draws horizontal price levels at user-defined intervals on the chart.
Users can select a starting price level (e.g., 71 or 2.1).
Lines are drawn at fixed gaps (e.g., if 71 is chosen, lines appear at 71, 142, 213, etc.).
An optional midpoint line can be enabled to appear halfway between the main levels.
Customizable colors for both main and midpoint lines.
Lines extend across the entire screen for easy visualization of price levels.
This tool helps traders quickly identify key price levels based on predefined spacing, aiding in technical analysis.
The Fixed Gap Price Levels indicator draws horizontal price levels at user-defined intervals on the chart.
Users can select a starting price level (e.g., 71 or 2.1).
Lines are drawn at fixed gaps (e.g., if 71 is chosen, lines appear at 71, 142, 213, etc.).
An optional midpoint line can be enabled to appear halfway between the main levels.
Customizable colors for both main and midpoint lines.
Lines extend across the entire screen for easy visualization of price levels.
This tool helps traders quickly identify key price levels based on predefined spacing, aiding in technical analysis.
發行說明
The base price to be drawn from added - in the works will update 發行說明
corrected發行說明
Indicator: Fixed Gap Price Levels 1.2Overview
This TradingView indicator automatically plots horizontal price levels at fixed intervals (gaps) above and below a user-defined base price. It allows traders to visualize structured price levels, which can be useful for support/resistance zones, range trading, and breakout strategies.
Features & Customization
Base Price Selection
Users specify a base price where the first level is drawn.
Gap Size Between Levels
The user sets a fixed gap size, determining the distance between each horizontal level.
Customizable Number of Levels
Users can specify how many levels to draw above and below the base price.
Main Price Levels
Drawn at equal intervals based on the gap size.
Fully customizable with:
Color
Line width
Line style (solid, dashed, dotted)
Midpoint Levels (Optional)
Users can enable midpoint levels between each gap.
These are also customizable with:
Color
Line width
Line style
Automatic Extension of Levels
Levels extend across the entire chart for easy reference.
How It Works
The indicator calculates price levels at equal intervals (above and below) from the user’s base price.
If enabled, midpoint levels are also plotted halfway between each price level.
The lines automatically update as new price data comes in.
Use Cases
✅ Scalping & Range Trading – Identify fixed price zones for short-term trades.
✅ Support & Resistance Analysis – Visualize key levels at equal price intervals.
✅ Grid Trading – Helps in automated strategies using fixed price increments.
發行說明
added a cart with a gap of 0.0001 發行說明
Key Features and FunctionalityBase Price and Gap Size:
The user specifies a basePrice (e.g., 100) and a gapSize (e.g., 10).
The indicator calculates price levels above and below the basePrice at intervals equal to the gapSize.
Number of Lines:
The user defines how many lines (numLines) to draw above and below the basePrice.
For example, if numLines = 5, the indicator will draw 5 lines above and 5 lines below the basePrice.
Midpoint Lines:
If enabled (showMidpoint = true), the indicator will draw additional horizontal lines at the midpoint between the main levels.
For example, if the gap between two main levels is 10, a midpoint line will be drawn at 5 units above the lower level.
Customizable Line Styles:
The user can customize the appearance of the main and midpoint lines:
Line Width: Thickness of the lines.
Line Style: Solid, dashed, or dotted.
Line Color: Color of the lines.
Dynamic Line Drawing:
The lines are drawn dynamically across the chart, extending 500 bars to the left and right of the current bar (bar_index - 500 to bar_index + 500).
The lines are extended in both directions (extend=extend.both), ensuring they span the entire chart.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。