OPEN-SOURCE SCRIPT

[DarkTrader] Pivot Point Heatmap

By cdw1p
Updated
The indicator calculates pivot points using price data from different timeframes such as 12M, 1M, 1W, 3D, and 1D. For each timeframe, it retrieves the high, low, open, and close prices of the previous bar. The pivot point is calculated as the average of the high, low, and close prices, which provides a central level where market sentiment may shift. This calculation is repeated for each timeframe, ensuring a multi-dimensional view of potential interest zones.
snapshot
Importance of Pivot Points :
Pivot points are essential tools in technical analysis, providing traders with levels that act as potential support and resistance zones. These zones help identify price levels where reversals or breakouts are more likely to occur.

Visual Representation :
The core feature of this indicator is its ability to visualize pivot points as a heatmap on the chart. Instead of showing just the latest pivot points, it tracks the historical pivot swipe, providing a dynamic view of how price interacts with these key levels. Each pivot point is represented by a line, color-coded based on its position relative to other points, creating a gradient effect that highlights the most critical price areas.

Customization Options :
Traders can customize various aspects of the heatmap to suit their preferences. The indicator offers options to toggle pivot swipe history, enabling traders to either focus on the most recent price interactions or consider how price has behaved over time. The background color and pivot line colors are fully customizable, making it easy to match the heatmap with your chart's theme or emphasize certain price levels.

Detecting Sweeps and Price Interaction :
Another important feature is the detection of price interactions with pivot levels. If the current bar's high and low cross a pivot point, it signals that the pivot level has been "swept" by price action, potentially indicating a change in market sentiment. The indicator either extends the line if the pivot point remains relevant or deletes it if price has broken through. This dynamic adjustment helps traders stay updated on which pivot levels are still valid.
Release Notes
snapshot
Added Pivot Source Options - Allows users to select a custom source from their preferred timeframes, offering flexibility in analyzing market data. It also includes the ability to plot customizable pivot points, providing enhanced control over key levels for trading strategies.
heatmapinterest-levelPivot PointsPivot points and levels
cdw1p

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?

Disclaimer