How to scan for recent close within 10% of 52 week high

Optuma Forums Optuma Scripting How to scan for recent close within 10% of 52 week high

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #66915
    Yi Jun
    • Topics: 3
    • Replies: 2
    • Posts: 5

    Hi sir,
    I need help on scripting to scan for stocks that closes within 10% of 52 week high to be included in my watchlist. However, My current script doesn’t generate the correct results. Here’s what I wrote: CLOSE(Day(PERIODAMOUNT=1)) < 10% * HIGHESTHIGH(Day(PERIODAMOUNT=1), BARS=252). It still gives me stocks that closes 20% below their 52 week high as true.

    Thanks,

    YJ

    #66919
    Peter
    • Topics: 1
    • Replies: 8
    • Posts: 9

    Hi YJ,

    This is what I use to generate closes within 10% of a 52 week high.

    CLOSE() >= (HIGHESTHIGH(RANGE=LOOK BACK PERIOD,BARS=260)*0.90)

    I hope that helps.

    Regards,

    Peter

    2 users thanked author for this post.
    #66931
    Yi Jun
    • Topics: 3
    • Replies: 2
    • Posts: 5

    Thank you so much Peter! That worked perfectly.

    Sincerely,

    YJ

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

Pin It on Pinterest