How to avoid trading in the stocks that trade near upper and lower circuit?

How to avoid trading in the stocks that trade near the upper and lower circuits? is there a pinescript option for this?

5 replies