Optuma Forums › Optuma Scripting › High > the Highest close of the last 3 days. › Reply To: High > the Highest close of the last 3 days.
May 1, 2020 at 12:19 pm
#57895

- Topics: 5
- Replies: 332
- Posts: 337
Hi Brad,
The following should work:
1 2 3 4 5 |
V1 = CLOSE() ; V2 = HIGHESTHIGH(V1, BARS=3, INCBAR=True); High() > V2 |
This script does include the current bar in the 3 day look back. If you don’t want to include it change the last part of line 2 to INCBAR=False);
Black Line = Highest Close in the last 3 bars (including current bar). Green shaded zone shows bars where the high is higher than the Black line.