- Joined
- 14 December 2010
- Posts
- 3,472
- Reactions
- 248
Yes, but many of the results will be duplicates from the previous day(s). Eg. You'd be entering a trade the first time it shows up on your list, making a new high. You wouldn't also enter another position in the same stock the following day when it closes even higher, and again the day after that when it closes higher still.
One thing you could do would be to change the code so it only gives you the first new high, after it has been below the HHV for 1 or more days. Have a think how you'd code that. I find it often helps to draw the daily bars of the setup you're looking for on a piece of paper so you can more easily visualise what you're trying to code.
I know what you're saying. I've drawn out the set ups I am looking for but am struggling to come up with answers.
The first part obviously has to be HHV of last 10 (or however many) days. I'm not sure how to ensure the same stock doesn't come up as it moves even higher the next day.
Is there any formula that I can enter that doens't show results for a company where the HHV of the last 10 days has been breached for 2 consecutive days? I'd have no idea how to code that.