You would only want this condition active after the first entry, so you need to code for a sequence. You can code a sequence with bool flags. See here for a similar question with BarsSinceExit and one approach.
I would simplify until everything works as you expect. Get BarsSinceEntry working first in a single series and then only apply to multi series when you know how eveything works.
When inputting parameters, just use values and not a variable declaration.
BarsSinceEntry(0, "", 0)
Comment