Day since last #% pullback

Optuma Forums Optuma Scripting Day since last #% pullback

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #66093
    Grant
    • Topics: 13
    • Replies: 7
    • Posts: 20

    Hi guys,

    I’m looking at getting Day since the last #% pullback

    so far I am here:SPX

    I’m looking for the 5%, 10% and 20% data… I am using the following script

    But as I am using HighestHigh I am getting a lot of blank areas in the charts where there were actually pullbacks of the above-mentioned figures. I have been playing around trying to figure out an alternative way to write the script but not having any luck.. any help would be appreciated thanks GH

    #66103
    Grant
    • Topics: 13
    • Replies: 7
    • Posts: 20
    #66107
    Darren
    • Topics: 66
    • Replies: 680
    • Posts: 746

    Hi Grant,

    Yep that would work. Put the Percent Swing Overlay on the chart using the same settings as the script and in the case of SPX you will see it’s been 221 days since the last 5% close-to-close pullback:

    Screenshot 2021-09-20 123939

    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest