Halloween etiquette and socially acceptable time for trick or treating?

It’s my daughters 1st Halloween and as someone new to the country I have no idea on Halloween etiquette.

What are the socially acceptable times that people are ok to receive a knock at the door and how do we know which houses to avoid? Etc etc

Edit: So my daughter was a little sick, refused to put on her outfit or leave the house, so we stayed home!

We put out lanterns, pumpkins, had a speaker outside playing scary music and also kept the porch light on. But didn’t get many kids turn. I think it probably was because all of my neighbours had their lights off. We will try again next year!