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.
Is it possible to do a scan for a low within any of the previous years only?
for example:
I want to make a scan that the close of today's price is within 5 % of the low of 2016.
Is this possible?
0
Comments
So i need a way to just get the low of that year alone all together.
Then you would look for a close some time in the more recent past (since that year end) that is less than that low by some amount (per cent), and a current price that is some smaller per cent below that min 251 low.
So, assuming the last day of the trading year of interest was 60 days ago, it might be something like
// recent price has been more than 15 per cent below annual low
and [30 days ago close < 60 days ago min(251, low) * .85]
// current price is below annual low
and [close < 60 days ago min(251,low)]
// current price is less than 5 per cent below annual low
and [ close > 60 days ago min(251, low) * .95]