Auto sqare off in intraday

I asked similar question sometime ago, maybe this will help.