ilovepennytrades 1 posts msg #145685 - Ignore ilovepennytrades |
12/23/2018 10:55:14 PM
Im trying to filter for stocks in consolidation during an uptrend. I feel like I have the uptrend filter workjng, but the consolidation based on highest price is where im struggling.
Admittedly im not the best when it comes to programming logic, I played with Boolean greater than and days since but i cant seem to get it right.
Basicaly what im tryjng to do is find stocks where the highest high was more than or equal to 30 days ago.
Can somome provide some examples?
|
four 5,087 posts msg #145701 - Ignore four modified |
12/24/2018 1:55:06 PM
perhaps - 2 examples
the highest 31 day high is greater than the highest 30 day high
|
xarlor 581 posts msg #145824 - Ignore xarlor modified |
1/2/2019 10:55:33 AM
Can you elaborate more on what you're requesting? The way I understood it is:
Highest high within the last 29 days is greater than or equal to the high exactly 30 days ago.
If that's what you want, this should do it:
Or did you mean:
Highest high within the last 30 days is greater than or equal to the highest high between 30 and 60 days ago?
If the above, try this one:
|