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.
Getting number of days since event
I'm trying to get the number of days since a stock had its highest value, within the past X days. Any advice? Thanks.
0
Answers
Gives us a little more info and maybe someone can figure something out that will work for you.
Number of preceding days to search - Days since last highest close (within date range)
For example, for the last year:
360 - Days since highest close within the past 360 days
Thanks, again.
I ran this on Sunday, 2/8/15:
[symbol is "IBM"]
rank by [Aroon Up(251) -100]
The result was -82.869
I wonder what accounts for the fractional result? Does something funky happen with large parameters?
Also, it appears from the chart that the highest high in the past 251 days was in April, not October (which was about 80 days ago). I don't use Aroon, so maybe there is some subtlety I am missing.
So we just need to adjust for the 251 period.
[symbol is "IBM"]
rank by [Aroon Up(251) -100 * 251 / 100]