NoRepeat Function

Author: Optuma Team Last updated: Oct 26, 2018 01:18

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.

Capture1