OPEN-SOURCE SCRIPT

pSAR 2024 09 25

By apdusp
Updated
This indicator was set so it can complement my implementation of the Didi trading system kind of a redundant type of confirmation and it contains 2 different indicators in its construction:

1-parabolic sar. with some quantitative and visual extras

to the standard psar, price and % from close at start and beginning of each trend cycle and number of periods it stayed in the cycle, so a better perception of price range and general trend behavior can be grasped.


2-kernel quadratic regression (kreg), with 2 alternatives versions

the kreg is quite smooth to point for trend and trend change and it is very visual. there are two selectable versions, one using arrays functions which is much smoother than the alternative (default) which does not use arrays. since arrays is almost an exclusivity to Tradingvew, I wanted to have an alternative so it can be translated to other platforms which do not have the array feature in them.

Release Notes
Many thanks to the great empowerZ for his terrific help in getting the job done !!
Moving AveragesParabolic Stop and Reverse (PSAR)

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?

Disclaimer