Simple 52 week low in last 4 weeeks
Forums › ProRealTime English forum › ProScreener support › Simple 52 week low in last 4 weeeks
- This topic has 12 replies, 3 voices, and was last updated 7 years ago by croc49.
-
-
07/02/2017 at 6:49 AM #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)
07/02/2017 at 9:12 AM #3956907/02/2017 at 12:30 PM #39581Sorry 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]
07/02/2017 at 12:36 PM #39582You 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.
07/02/2017 at 11:16 PM #3960012345678910111213141516171819202122TIMEFRAME(Weekly)// find 52 week lowll = Lowest[250](close)// closing price 4 weeks agoclose20 = close[20]// closing price 3 weeks agoclose15 = close[15]// closing price 2 weeks agoclose10 = close[10]// closing price 1 week agoclose5 = close[5]// closing price todayclose0 = close[0]YearLow = (ll<close20) and (close20<close15) and (close15<close10) and (close10<close5) and (close5<close0)SCREENER (Yearlow)07/03/2017 at 1:11 AM #39612I 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
123456789101112131415161718192021222324252627TIMEFRAME(Weekly)// find 52 week lowbottom250 = Lowest[250](close)// closing price 5 weeks agoclose25 = close[25]IF close25 = bottom250 THEN bottom = close25ENDIF// closing price 4 weeks agoclose20 = close[20]// closing price 3 weeks agoclose15 = close[15]// closing price 2 weeks agoclose10 = close[10]// closing price 1 week agoclose5 = close[5]// closing price todayclose0 = close[0]YearLow = (bottom<close20) and (close20<close15) and (close15<close10) and (close10<close5) and (close5<close0)SCREENER (Yearlow)?
07/03/2017 at 9:32 AM #3964807/03/2017 at 12:05 PM #39673On a Weekly TF the line below is looking for the lowest 5 years ago.
1bottom250 = Lowest[250](close)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?
,
07/03/2017 at 12:27 PM #39676Below 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?
12345678910111213141516171819202122//TIMEFRAME(Weekly)// find 52 week lowll = Lowest[52](close)// closing price 4 weeks agoclose20 = close[20]// closing price 3 weeks agoclose15 = close[15]// closing price 2 weeks agoclose10 = close[10]// closing price 1 week agoclose5 = close[5]// closing price todayclose0 = close[0]YearLow = (ll<=close20) and (close20<=close15) and (close15<=close10) and (close10<=close5) and (close5<=close0)SCREENER [Yearlow]07/03/2017 at 1:44 PM #39696Probably 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.
latest version to get recent 52 week low12345678TIMEFRAME(Weekly)// find 52 week lowbottom250 = Lowest[250](close)CLOSE0 = Close[0]if close0 > bottom250 thenbottom = close0endifSCREENER [bottom]07/03/2017 at 2:57 PM #3970407/03/2017 at 3:09 PM #39705If 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:
1234567TIMEFRAME(Weekly)// find 52 week lowbottom250 = Lowest[52](close)// price has retrace more than 20% since the bottomcondition = close/bottom250>=1.2SCREENER [condition] (close/bottom250 as "retrace%")1 user thanked author for this post.
07/04/2017 at 12:26 AM #39741 -
AuthorPosts
Find exclusive trading pro-tools on