OPEN-SOURCE SCRIPT

Parabxot

Mis à jour
This indicator is a modified Parabolic SAR (Stop And Reverse) created by Dennis Meyers in 2001 in order to avoid the typical whipsaws produced in ranging, non-trending markets. Parabxot does not reverse unless the price penetrates the previous SAR level by a specified amount. Also it increases (decreases) the initial distance of the SAR level by adding (substracting) a predefined percentage amount to the Parabolic starting value.

The thresholds can be adjusted using the following parameters:

  • xo controls the percentage amount added or substracted to the last Parabolic SAR value in order to allow a change in direction in the indicator.
  • xpr defines how much should be added to the previous highest high (in case of a bearish reversal) or substracted to the previous lowest low (in case of a bullish reversal), expressed as a percentage of price.


Setting xo and/or xpr to zero disables the filters and the indicator behaves as the original Parabolic SAR.

Reference
Meyers, Dennis (2001), The Improved Parabolic + Noise Filter System
Notes de version
Fixed error in line 20 (replaced + by *)
parabolicParabolic Stop and Reverse (PSAR)

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


Aussi sur:

Clause de non-responsabilité