Scan for pullbacks from new highs

Optuma Forums Optuma Scripting Scan for pullbacks from new highs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #65303
    Louis
    • Topics: 23
    • Replies: 39
    • Posts: 62

    Hi,

    I am trying to build a script to use as a scan. Unfortunately,  I  am stuck.

    I want to find stocks that:
    1) made a 252 day closing high in the last 10 days
    2) has closed below that new high by more than 25% but less than 38.2%.

    Here is what I have. I know that my Variable 1 does return stocks that closed at a 252 day high in the last 10 days.  I cannot figure out how to find stocks that have now closed 25% to 38.2% below that high returned in Variable 1.

    thank you,
    Louis.

    #65320
    Matthew
    • Topics: 5
    • Replies: 521
    • Posts: 526

    Hi,

    Here is how i would script the criteria you listed:

    Here is how it looks on a chart:

    Ex1
    Black Line = Highest High (252 days) and Pink Arrows = Criteria Pass

    • This reply was modified 5 months ago by Matthew.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest