OPEN-SOURCE SCRIPT

Spiral Levels [ChartPrime]

SPIRAL LEVELS

⯁ OVERVIEW
The Spiral Levels [ChartPrime] indicator, designed for use on TradingView and developed with Pine Script™, leveraging a combination of traditional pivot points and spiral geometry to visualize support and resistance levels on the chart. By plotting spirals from pivot points, the indicator provides a distinctive perspective on potential price movements.

It's an experiment inspired from spirals in the Pine documentation and the concept of using spirals to add padding/offsets to SR zones in a market (an idea we plan to expand on in the future).

◆ USAGE
● Identifying Pivot Points: The indicator identifies significant pivot highs and lows based on user-defined criteria.
● Filtered Pivot Points: Pivot points for spirals are filtered using volume and high/low thresholds to ensure they are significant.
snapshot

● Spiral Visualization: Spirals are plotted from these pivots, indicating potential future support and resistance levels or as liquidity zones.
Additionally, the plotted levels can serve as liquidity zones where the price might attempt to grab liquidity, providing a deeper understanding of market behavior at significant volume levels.
snapshot

● Volume-Based Coloring: Spirals are colored based on volume data, providing additional context about the strength of the price movement.
snapshot

● Labeling and Line Extensions: Labels display volume information, and lines extend from the end of the spirals to the current bar for clarity.
snapshot

● Spiral Rotation: By adjusting the "Number of spiral rotations" input, you can control the number of rotations each spiral makes around a pivot point, offering more detailed insights. This also allows you to control the distance of levels from a pivot. More rotations will extend the spiral further from the pivot point, potentially identifying support and resistance levels or liquidity zones at greater distances.
snapshot
This modification emphasizes that the number of rotations not only provides more detailed insights but also affects the spatial distribution of the identified levels relative to the pivot point.



⯁ USER INPUTS
● Pivots
  • Left Bars: Determines the number of bars to the left of the pivot.
  • Right Bars: Determines the number of bars to the right of the pivot.

● Filter
  • Volume Filter: Sets the threshold for volume filtering.
  • High & Low Filter: Sets the threshold for filtering pivot highs and lows.

● Spiral
  • Spirals Shown: Specifies the number of spirals to be displayed on the chart.
  • Number of spiral rotations: Sets the number of rotations for each spiral.
  • X Scale: Adjusts the horizontal scale of the spirals.
  • Y Scale: Adjusts the vertical scale of the spirals, relative to the ATR(200).
  • Reverse Spirals: Option to reverse the direction of the spirals.



⯁ TECHNICAL NOTES
  • The indicator uses Pine Script's polyline feature for smooth spiral rendering.
  • It implements a custom cross detection function to manage line and label visibility.
  • The script is optimized to limit calculations to the last 1000 bars for performance.
  • It automatically manages the number of displayed elements to prevent clutter and ensure smooth performance.



The Spiral Levels ChartPrime indicator offers a unique and visually engaging method to identify potential support and resistance levels. By integrating volume data and pivot points with spiral geometry, traders can gain valuable insights into market dynamics and make more informed trading decisions.
Fibonacci SpiralspaddingsupportSupport and Resistance

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer