Optuma Forums › Optuma Scripting › First Signal › Reply To: First Signal
April 13, 2022 at 3:39 pm
#67933
- Topics: 5
- Replies: 608
- Posts: 613
Hi,
You could wrap your entry script in an OFFSET() function to get the result you are after.
For example:
Entry:
1 2 3 4 |
V1 = MA(BARS=150) CrossesAbove MA(BARS=50); V1 |
Exit:
1 2 3 4 |
V1 = MA(BARS=150) CrossesAbove MA(BARS=50); OFFSET(V1, OFFSET=22) |
This would not reset if a new cross happens within the 22 bar period.
With your other query, you are correct, some of the properties in the Back Tester (such as Minimum Hold Days / Max Hold Days) are part of the Enterprise services subscription only.