PSAR short issue

Optuma Forums Optuma Scripting PSAR short issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #62573
    AvatarJeffrey
    • Topics: 6
    • Replies: 1
    • Posts: 7

    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
    DarrenDarren
    • Topics: 63
    • Replies: 557
    • Posts: 620

    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

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close