JEAParticipant
New
Hi. I am trying to get an screener that give me, in a weekly timeframe, a low followed by another low, lower than the previous one. I am afraid that I am doing something wrong, probably due to my lack of expertise.
Insert PRT code
My code is the following:
Timeframe (weekly)
c1= lowest [0] (low) < lowest [1] (low [1]), being 0 the latest bar and 1 the previous to the latest bar.
screener [c1]
I would appreciate your help.
JSParticipant
Veteran
Hi @JEA
Try this one…
TimeFrame(Weekly)
C1=Low<Low[1]
SCREENER[C1](Low as "Low")
JEAParticipant
New
Thank you very much for your quick answer.
I’ve tried your solution and it works sometimes but not always. Do you know any alternative to get that the last bar low would be lower than the previous one?
All my best,
JSParticipant
Veteran
Hi,
Can you point out where it doesn’t work…?
It’s a simple solution that should work in any circumstance…
(Did you select “weekly” in your screener…?)
JEAParticipant
New
I will try to explain it. I am afraid that I have not been very clear since the beginning. Apologize for it.
I want to get a double bottom, being the second low lower than the previous one.
It is one of the conditions of the screener but the others are already solved.
This is why I tried c1= lowest [0] (low) < lowest [1] (low [1]),
because I wanted the last bar as the lowest and the previous one with a higher low. May be I should have defined a period as 52 weeks or so.
I hope to have been more clear now.
JSParticipant
Veteran
Hi,
It is indeed possible to compare the last “Low” with a previous period, for example 52 weeks…
You can see the lowest “Low” in the designated column of the results sheet…
TimeFrame(Weekly)
C1=Low<Lowest[52](Low[1])
SCREENER[C1](Lowest[52](Low[1]) as "Lowest52")
JEAParticipant
New
It works now!! Thanks a lot for your help.