Optuma Forums › Optuma Scripting › A few scripting questions › Reply To: A few scripting questions
August 18, 2021 at 10:57 pm
#65599
- Topics: 13
- Replies: 4
- Posts: 17
Hi Jeffrey,
Try this:
12345 l1 = BARTYPES().Lower;h1 = HIGH();(l1[1] == 1) and (h1 > h1[1])
l1 = BARTYPES().Lower;
h1 = HIGH();
(l1[1] == 1) and (h1 > h1[1])
The signals are working as I specified. Thank you!
As I have ran this, I realized that I made a mistake in my description. How would I get this to give a signal upon exceeding and “closing” beyond the previous bar as opposed to just exceeding the previous bar’s price then retracing back within it’s range?