Optuma Forums › Optuma Scripting › Help with scripting language for temporal filtering › Reply To: Help with scripting language for temporal filtering
- Topics: 1
- Replies: 45
- Posts: 46
The non repeat function will return true when its source returns true, but once set to true it will ignore any other signals from source for up to the number or bars specified. e.g.
x = CLOSE() > OPEN();
If you put this in a showview you will see that once it is triggered it will not trigger again for at least 10 bars.
This is function is covered in the advanced scripting course
The current list of non tool functions is here
This list is continually being updated, and will be updated in the near future with new functions.
The tool programming functionality has much more options to creating custom tools or functions. However it does require basic programming knowledge.
There have been a few issues found with self referencing variables and the fixes are currently being tested in beta.
Can you please send through an example of your script using  notation and we will see if it is fixed by the recent changes.
see here for info on self referencing variables
I attempted to meet your criteria without self referencing, does this script meet your conditions ?
a1 = CLOSE() CrossesAbove MA();
b1 = CLOSE() CrossesBelow MA() ;
c1 = a1 or b1;
c2 = NOREPEAT(c1, BARS=5);
n = OFFSET(TIMESINCESIGNAL(c1, UNIT=Bars), 1);
o1 = if (n > 3, c2, c1);
plot1 = b1;
plot1.Colour = Red;
plot2 = o1;
plot2.Colour = Blue;