Did you try setting the "Directional" parameter to false?
No need for a test (although I am doing it too :))
It will be solved
Use the attached one (a bit different, but all in all, when the changes that must be done would be done, they would be the same)
PS: as any fractals indicator - it recalculates/repaints
That indicator is alerting on those levels cross
Parabolic SAR of Kaufman AMA with a full set of alerts posted here : https://www.mql5.com/en/forum/177358/page16
Please enable the necessary setting in your browser, otherwise you will not be able to log in.