PSAR short issue

Optuma Forums Optuma Scripting PSAR short issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #62573
    Jeffrey
    • Topics: 14
    • Replies: 4
    • Posts: 18

    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

    #62575
    Darren
    • Topics: 70
    • Replies: 871
    • Posts: 941

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest