NoRepeat Function
The NoRepeat function ignores multiple signals over a defined time window. For example, the green Show Bar arrows below show where the RSI(5) has crossed below 25. The script for the red arrow uses the NoRepeat function to signal only if it’s the first occurrence in 5 bars:
R5=RSI(BARS=5) CrossesBelow 25;
NOREPEAT(R5, BARS=5)
Because the second green arrow occurred only 4 days after the first, the second signal is ignored.