OPEN-SOURCE SCRIPT

_Auto Pivot Points

Atualizado
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.
Notas de Lançamento
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

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?


Também em:

Aviso legal