PROTECTED SOURCE SCRIPT

Custom Levels

51
The "Custom Levels" indicator is a tool designed for traders utilizing price action strategies on TradingView. Its core functionality is to dynamically plot a user-defined number of horizontal price levels above and below the current market price, based on a customizable rounding step. This allows traders to quickly identify key support and resistance zones, enhancing their ability to analyze price movements and make informed trading decisions.
How It Works
The indicator calculates levels by rounding the current closing price to the nearest multiple of the specified "Round Step" (e.g., 10.0), then generates up to 10 evenly spaced levels above and below this base. Users can adjust the number of levels (1 to 10), line color, width, and style (solid, dashed, or dotted) directly from the settings menu. Lines are updated in real-time on the last candle, ensuring they reflect the latest price action, while old lines are automatically removed to prevent clutter.

Key Features:
- Customizable rounding step for precise level placement.
- Up to 10 levels above and below the current price for comprehensive analysis.
- Flexible styling options to suit individual preferences.
- Ideal for price action traders seeking to pinpoint critical price thresholds.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.