Simple 52 week low in last 4 weeeks

Forums ProRealTime English forum ProScreener support Simple 52 week low in last 4 weeeks

Viewing 13 posts - 1 through 13 (of 13 total)
  • #39568

    Not having much luck with trying to find 52 week lows in last 4 weeks, then sieve through them for incremental rises one week at a time (52 week low < close[15] and close [10] > close [15] and close [5] > close [10] and close [0] > close [5] …….if you get my drift.

    Also, can’t seem to make ProScreener produce weekly charts, always defaults to daily. I do set TIMEFRAME(Weekly)

    #39569

    Easiest way to get help is to put your full code on here (using <> Insert PR Code button). Then any helpful member could copy and run your code on their Platform and report back on what results they get?

     

    #39581

    Sorry to be a pain, but I can’t get to first base.

    I’m new at this and I can’t see <> insert PR code button.

    You’ll notice I’m hung up on finding close value for 52 week low.

    What I’m after is each week for 4 weeks greater than that 52 week low., and I’m getting mixed results.

    In other words, I only want a +ve graph only.

    As I mentioned, the output is always daily although I put in TIMEFRAME(Weekly)

    TIMEFRAME(Weekly)
    // find 52 week low
    ll = Lowest[250](close)

    // closing price 4 weeks ago
    close20 = close[20]

    // closing price 3 weeks ago
    close15 = close[15]

    // closing price 2 weeks ago
    close10 = close[10]

    // closing price 1 week ago
    close5 = close[5]

    // closing price today
    close0 = close[0]

    SCREENER[ll<close20 and close20<close15 and close15<close10 and close10<close5 and close5<close0]

    #39582

    You have coded a Screener, but you say …. I only want a +ve graph only … the result / ouput of a Screener is a Table so your mention of a graph confuses me.

    Please can you add (on this page) a screen shot of your graph so we can see what you are talking about?

    Also please can you add a screen shot of the buttons that you do see? Attached are the buttons I see.

    #39600

     

    #39612

    I appreciate your patience. I did find the <> button (was looking for some text as well) – getting there.

    It is a Screener that I’m after.

    The theory being that if price hits bottom and turns more than 20% in weekly, it is an established trend, and will probably keep going.

    Attached is a type of graph that I would like to see in the qualifiers in ProScreener.

    Scoured through multitudes of examples but none seem to touch the subject.

    I tried your solution which seems to me to do pretty much the right thing, but the 52 week bottom isn’t 5 weeks ago.

    Added my tweak in <> box, but I didn’t get if/then/else right.

    Some weeks still produce lower than the week before.

    Also the damn TIMEFRAME stills spits out daily.

    Is it that Proscreener will only do dailys, because I’ve looked all over settings and can’t find a switch

     

    ?

    #39648

    The screener condition must be enclosed in square brackets instead of parenthesis:

     

    1 user thanked author for this post.
    #39673

    On a Weekly TF the line below is looking for the lowest 5 years ago.

    I still don’t know what you mean  …  the damn TIMEFRAME stills spits out daily … a picture tells a thousand words, can you add a screencapture of what you mean?

    Weekly work fine for me … are you using the setting attached? When I click on a result I get a chart with the x axis in weeks (each bar is a week apart). What is the period between each bar on your x axis axis when you click on a result after screening on Weekly TF?

    ,

    #39676

    Below is the code I am using on a Weekly TF with ALL Commodities and ALL Indices selected and attached are my results … do you get the same / similar?

     

     

    #39696

    Probably bitten off more than I can chew with so many variables.

    I think what I’m trying to nail down in Proscreener is a ticker that had a 52 week low say 4 or 5 weeks ago and everything since then is +ve.

    If I can nail that, I understand how to manipulate the weeks in between.

    As I’ve said previously, I have scoured the PDF lessons, and through lots of examples but none seem to play with 52 week low.

    My latest attempt is listed – I still can’t nail that recent 52 week low with a few rises – see my graph

    My objective – The theory being that if price hits bottom and turns more than 20% in weekly, it is an established trend, and will probably keep going.

     

    #39704

    Yeah it all sounds good, but with  Lowest[250](close) on a Weekly TF you are screening for the lowest in the last 250 weeks which is 5 years!

    #39705

    If you want to find a 52 weeks low, why are you looking back through 250 periods?

    To find that current close has turned more than 20% since the last 52 weeks low, you could give a try with:

     

    1 user thanked author for this post.
    #39741

    Thank you for the help. I think I understand the concept I’m after a lot better.

    Will play around for a while and repost when I’m done.

    I certainly had the wrong idea about a couple of things.

    2 users thanked author for this post.
Viewing 13 posts - 1 through 13 (of 13 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login