Hello,
I have a script which generate IR control chart and tests 1,2,3 & 8 on the data points. When I'm not applying any limits it's working fine:

But when I'm applying limits it's acting weird. Flagging one value and leaving others or not flagging at all. See this:

It's totally out of my mind what can be the possible reason???