OPEN-SOURCE SCRIPT

Pivot Data [QuantVue]

The Pivot Data Indicator is designed to provide traders with valuable insights by identifying and analyzing pivot points on the price chart. It calculates both pivot highs and lows, then presents detailed statistics on the distance and time between these pivots.

a pivot point is defined as a specific point on the chart where the price either reaches a high or a low, with no bars higher or lower than it for a set number of bars on both sides (left and right). Essentially, it's a local high or low point, with the market moving in the opposite direction after the pivot forms.

For example:
  • A pivot high occurs when there are no bars with higher prices for a specified number of bars before and after that point.
  • A pivot low occurs when there are no bars with lower prices for the same number of bars on either side.

The number of bars to the left and right is adjustable via the Pivot Lookback Bars setting, allowing you to define how many bars are used to determine these pivot points.

Key features include:

Pivot Highs and Lows Identification: Automatically marks significant pivot highs and lows based on a user-defined lookback period, helping traders identify potential trend reversals or continuation points.

snapshot

Prediction Labels: Provides forecasted pivot levels based on historical pivot price and time patterns, with options to show predictions for pivot highs, lows, or any pivot point.

snapshot

Customizable Table Display: Displays a table summarizing important statistics, such as the average price percentage and the number of bars between pivots, along with the distance and time from the most recent pivot.

snapshot

Traders can use this tool to map out potential levels of support and resistance based on historical data on pivot points.
levelspivotpivotlevelsPivot PointsPivot points and levelspivotstrategypivotsupportquantvuesupportsupportandresistancezones

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?


Get Access to the exclusive QuantVue indicators: quantvue.io/

Join thousands of traders in our Free Discord: discord.gg/tC7u7magU3
Also on:

Disclaimer