New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
Scan for 20 day low (Different)
How can I scan for a stock that has 20 days of lower lows with each low lower than the previous low. These lows do not have to be consecutive ! Need to keep a running count from the entry point. If a new high occurs compared to the entry high, then the low count starts over again. Is this possible with the scan network?
Thanks
0
Comments
You can define a fixed pattern of lows, or several fixed patterns connected in an "or" statement. But you cannot look back at an undefined period of time and count the lower lows until you find 20 of them. This would require a loop structure and a variable to hold the count, both of which are unavailable in the scan engine.
I have no idea what you mean by "entry high" but if looking to find a 20 days of lower lows, the Price Channel option seems to be a possible solution.
Tom DeMark's "Sequential" Entry Scan
Stocks with 9 consecutive days with the close greater than the close 4 days earlier.
# Thomas DeMark's "Sequential" Buy Setup
# from "The New Science of Technical Analysis" p.140-145
[type = stock]
and [today's close > 4 days ago close]
and [1 days ago close > 5 days ago close]
and [2 days ago close > 6 days ago close]
and [3 days ago close > 7 days ago close]
and [4 days ago close > 8 days ago close]
and [5 days ago close > 9 days ago close]
and [6 days ago close > 10 days ago close]
and [7 days ago close > 11 days ago close]
and [8 days ago close > 12 days ago close]
and [9 days ago close >= 13 days ago close]
//Uncomment the following line to find _new_ signals.
// and [10 days ago close < 14 days ago close]