PSAR short issue

Hi,
I’m trying to add the PSAR as one of my scripting variables (If price is above or below the dots). The long code seems to work great with the showbar, but the short does not. Any ideas?

psarlongpsarshort

Hi Jeffrey,

The PSAR state is either 1 (long) or 0 (short), so < 0 won’t return any results. Instead use ==0 for the short state, or ChangeTo 0 for a discrete event:

https://forum.optuma.com/topic/psar-scan/#post-62397