OPEN-SOURCE SCRIPT
Advanced PSAR v1 [wm]

A port off Dennis Meyers Advance PSAR outlined in Stocks and Commodities V13:4
The shape, slope and speed of the SAR is controlled by three parameters: the starting acceleration factor (AF), the increment that the AF can change when a new price high or low is made, and the maximum AF. Because of the way the SAR is calculated, the shape of the SAR curve resembles a parabola - hence its name.
Most software packages only allow the user to vary the AF increment and the AF maximum, fixing the starting AF at 0.02. This restriction hampers the trend-following abilities of the parabolic.
Frequently as the SAR hugs the price curve, it is penetrated by a price bar by a minuscule amount, causing the SAR to generate an opposite signal. The price then immediately turns around and resumes going in the direction it was going before this penetration occurred, causing a costly whipsaw loss.
Many of the whipsaw losses are caused by noise or randomness in the price series. Thus, if the SAR is to represent the trend of a real price series, it must have the capability to ignore penetrations of noise level amounts. To this end, I have modified the parabolic SAR formula to include a variable that allows the SAR not to reverse unless penetrated by a defined amount. This new parameter is defined as ‘XO Increment’ for crossover increment
This version is configured for pips. If using on other assets with much larger values should be used. Also note the starting values have not been optimised. Should users of this script find good values please comment and share with the community if you could
The shape, slope and speed of the SAR is controlled by three parameters: the starting acceleration factor (AF), the increment that the AF can change when a new price high or low is made, and the maximum AF. Because of the way the SAR is calculated, the shape of the SAR curve resembles a parabola - hence its name.
Most software packages only allow the user to vary the AF increment and the AF maximum, fixing the starting AF at 0.02. This restriction hampers the trend-following abilities of the parabolic.
Frequently as the SAR hugs the price curve, it is penetrated by a price bar by a minuscule amount, causing the SAR to generate an opposite signal. The price then immediately turns around and resumes going in the direction it was going before this penetration occurred, causing a costly whipsaw loss.
Many of the whipsaw losses are caused by noise or randomness in the price series. Thus, if the SAR is to represent the trend of a real price series, it must have the capability to ignore penetrations of noise level amounts. To this end, I have modified the parabolic SAR formula to include a variable that allows the SAR not to reverse unless penetrated by a defined amount. This new parameter is defined as ‘XO Increment’ for crossover increment
This version is configured for pips. If using on other assets with much larger values should be used. Also note the starting values have not been optimised. Should users of this script find good values please comment and share with the community if you could
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。