OPEN-SOURCE SCRIPT

_Auto Pivot Points

已更新
One of the main drawbacks to displaying Pivot Points on a chart is that many times the more extreme pivots (R/S3, R/S4, R/S5) aren't anywhere close to the price action during a timeframe. These extreme pivot points clutter up your chart and make it hard to use the "auto" zoom feature of TradingView.

The "_Auto Pivot Points" indicator solves these problems by automatically only displaying the pivot points if the price has crossed the pivot during the timeframe or it is the next closest pivot . For example, on monthly pivots if the price has only crossed the R1 Pivot then this indicator will display the R2 Pivot and any pivots below but it won't display the R3, R4, R5 pivots . The R3, R4, & R5 pivots are not very useful to the trader because the price hasn't even crossed the R2 Pivot . But as soon as the price crosses the R2 Pivot then this indicator will display the R3 Pivot because it is the next closest. And the same logic applies to the S Pivots .

If you need to see all the Pivots then there is a convenient toggle to display all the pivots by turning off the intelligent auto pivots . But as soon as you don't need to display all the pivots the toggle will turn on the automatic pivots .

This indicator has many style and logic options. This script allows you to control:

  • Number of past timeframes to display
  • Displaying Pivot labels
  • Label position (left/right)
  • Line color
  • Line width


Note: TradingView has a limit of 40 security calls per script. Due to this limitation this indicator can only display pivots a max of 7 time periods back.

Note 2: This indicator uses the Traditional pivot calculations.
版本注释
Update 1: Line Updates

  • Can now independently control lines by group: Pivot, Resistance, & Support
  • Change each groups line color, width, & style
  • Add ability to change the line style: Solid, Dotted, or Dashed
pivotPivot Pointstraditional

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明