Optuma Forums › Optuma Scripting › Scan for pullbacks from new highs › Reply To: Scan for pullbacks from new highs
July 26, 2021 at 8:26 am
#65320
- Topics: 5
- Replies: 616
- Posts: 621
Hi,
Here is how i would script the criteria you listed:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
//Find new 252 Day Highs V1 = High() CrossesAbove HIGHESTHIGH(BARS=252) ; //Find New Highs within the last 10 days V2 = TIMESINCESIGNAL(V1) <= 10; //Find High Value at last trigger V3 = PRICEATSIGNAL(V1, PRICE=High); //Find Pullback Range V4 = V3 * 0.75; V5 = V3 * 0.618; //Results CLOSE() >= V5 and CLOSE() <= V4 and V2 == 1 |
Here is how it looks on a chart:
Black Line = Highest High (252 days) and Pink Arrows = Criteria Pass
-
This reply was modified 11 months ago by
Matthew.