Ok after taking a second glance at this, I'm starting to understand it...
At first I didn't realize you were creating a series of zero's... i didn't know that's how you would do that...

Now from your description I understand that:
entries+1 is not simple 1 plus each value in the entries series, but rather something much more like entries[1]. I'm not sure why we don't use entries[1] but that's fine... (that doesn't seem to be accepted)

So this code says: "If it has crossed over in the prior 6 bars, enter long, and if it crossed under in the prior 6 bars, enter short."


And when you said "the if(Sum(...)) statement would always be true" you mean false I believe.

This makes sense, thank you!!