joosthoeks / jhTAlib

Technical Analysis Library Time-Series
https://joosthoeks.github.io/jhTAlib/
GNU General Public License v3.0
152 stars 44 forks source link

PSAR calculation is wrong #11

Closed mbmarx closed 4 years ago

mbmarx commented 5 years ago

The PSAR calculation is wrong the output is not matching with tradingview.com out put.

joosthoeks commented 5 years ago

I think you mean the SAR instead of PSAR?

I got the original SAR calculation from the book: New Concepts in Technical Trading Systems. On page: 9.

You can change the params: af_step (acceleration factor step) and af_max (acceleration factor max).

joosthoeks commented 5 years ago

closed