Or this can be used (but this disables all experts from trading if the spread on the current chart is higher that the desired)
It also re-enables them if the spread becomes less than the maximal spread allowed
_________________________
PS: that is an indicator (not an EA - for obvious reasons )