I'm kind of a newbee
I've been holding a stock a long time and will continue to hold it. In this Case HD which is at $181. To add income, I write a covered call, strike $190, let's say, expires 11/16, and collect a $1 premium. I also place an order to buy 100 HD if it rises to $190, to replace my 100 shares. I can see the risk of HD rising above $190 and then fall below, and I bought at $190. But my option didn't exercise.
I don't know of an order that would buy 100 HD if the option got exercised.