That script had wrong variable names. It's "NumOpenLong" and "NumOpenShort", not "numShort".