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.
快照

● 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.
快照

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

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

● 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.
快照
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

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?


更多:

免責聲明