How to dissuade trick or treaters from coming to your place.
Put a large vicious looking dog out front on a line and then put a large "beware of the dog" sign near it.
Turn the lights off and close the blinds.