Optuma Forums › Optuma Scripting › Open and Close 30% below day’s high › Reply To: Open and Close 30% below day’s high
November 1, 2021 at 12:57 pm
#66439
- Topics: 5
- Replies: 602
- Posts: 607
Hi,
There are a few errors with the script you posted.
With V1, the High function doesn’t support Bars or Backtype days, for your script the High() is all you need.
Also, only V2 and V3 are Boolean, so the last line should not be referencing V1.
The final adjusted script would look like this:
1 2 3 4 5 6 |
V1 = HIGH() * 0.7; V2 = CLOSE() <= V1; V3 = OPEN() <= V1; V2 and V3 |
This script returns results, here’s an example: