OPEN-SOURCE SCRIPT

Dynamic Support/Resistance Zones [ChartPrime]

Dynamic Support/Resistance Zones is a new way to visualize key support and resistance levels by analyzing pivot points. It aggregates these points into bins and uses different scoring methods to determine the strength of the zone. The Linear method treats every pivot the same, Time gives more importance to recent pivots, and Volume scores pivots based on trading activity.

It visually represents the strength of price zones using either a visual distribution or an overlay of colors. Areas with many aggregated pivots are marked using the High Color, indicating strong support or resistance. Fewer pivots are shown in Low Color, suggesting weaker levels. Users can also see the score using the distribution mode to more accurately determine the strength of these areas.

The indicator also includes a special moving average line, calculated from pivot prices and their weights. This gives a central pivot level, allowing you to see the average pivot position. We have also provided some smoothing for this line to make it easer to use.

We have included various options to tailor your analysis. These include selecting the scoring method for pivots and adjusting the number of pivots to consider, along with many visual aids. Traders can also set the level of filtering for the distribution of pivots. By default the filter isn't enabled but when it is enabled it allows for a less noisy experience at the expense of precision.

We have included four pivot periods that you can modify and toggle. The idea is that longer period pivots will enhance the strength of the shorter period ones providing a natural way to weight pivot levels. You can also specify whether you want to use pivot high, pivot low, or both in your analysis.

snapshot

Here are some details on the key inputs:

  • Weighting Style: Choose how to score pivot points. Options include: Linear: Treats each pivot equally. Time: Gives more importance to recent pivots. Volume: Scores pivots based on trading volume.
  • Number of Pivots: Set the number of pivots to consider in the calculation. Both pivot highs and lows are treated separately.
  • Filtering: Adjust the level of filtering applied to the distribution of pivots. A higher value smooths the distribution, providing a cleaner visual representation at the cost of some precision. This setting is crucial for managing the trade-off between clarity and detail in the visualization of support and resistance zones.
  • Distribution Scale: Determines the scale of the distribution on the screen. It influences both the visual aspect and the precision of the calculations, allowing for a balance between visibility and analytical accuracy.
  • Manual Precision: Manually set the number of divisions within the range. This setting offers control over the granularity.
  • Auto Precision: When enabled, it automatically adjusts the precision based on the average range of a candle, ensuring a minimum level of detail in the visualization.
  • Show Distribution: Toggle the visibility of the distribution of pivot points. When activated, it provides a detailed visual representation of where pivots are concentrated.
  • Show Score in Distribution: Opt to display the actual score within the distribution. This feature adds a quantitative element to the visual representation, offering a clearer understanding of the pivot point concentration.
  • Distribution Overlay: Activate a heat map overlay to visualize the distribution of pivots. You can also adjusting the transparency of this overlay, providing a balanced view that does not obstruct the underlying price chart.
  • Show Support/Resistance: Enable lines that indicate identified support and resistance levels based on the aggregated pivots. This feature provides a clear, actionable insight directly on the chart.
  • S/R Zone Visibility: Choose to display the support/resistance zones and set their transparency. It offers an extended visual cue about the potential breadth of support or resistance areas.
  • Pivot Level Average: Introduce a moving average line that's calculated based on the weighted pivot levels. You can also adjust the smoothness of this line.

snapshot

Dynamic Support/Resistance Zones is an intuitive and versatile trading indicator that offers a novel approach to identifying support and resistance levels by analyzing pivot points. It blends a variety of scoring methods, customizable visual representations, and a unique moving average line. With its customizable settings for pivot analysis, visual clarity, and precision, it's an nifty tool for traders looking to enhance their decision making with detailed and actionable insights.
Support 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