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
MatthewMatthew
  • Topics: 4
  • Replies: 254
  • Posts: 258

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

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close