Optuma Forums › Optuma Scripting › Trailing % Stop Tool › Reply To: Trailing % Stop Tool
May 19, 2020 at 5:06 am
#58179

- Topics: 63
- Replies: 555
- Posts: 618
Hi Thomas,
Do you mean you want to draw the line 20% above the high? If so, change line 5 to the following:
PCT=HIGH()*1.2;
Then click on the RATCHET function (line 9) and change the direction to Down.
It’s not possible to stop the line when it is crossed in scripting – that will require a new tool to be developed.