Reply To: High > the Highest close of the last 3 days.

Optuma Forums Optuma Scripting High > the Highest close of the last 3 days. Reply To: High > the Highest close of the last 3 days.

#57895
Matthew
  • Topics: 5
  • Replies: 487
  • Posts: 492

Hi Brad,

The following should work:

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);

Ex3

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.

Pin It on Pinterest