I have a question about Stop Loss order - the automated closure of active trading position. It is well known that next candle almost always gets opened on EXACT price level where previous candle closes. But here is one exception: time period where there is no trading. E.g. weekends (except brokers allowing to trade on weekends) and holidays. Perhaps also rare situations of servers being under maintenance. In such cases next candle may necessary open where previous closes but it can either above or below previous one's closure. This is obviously called a gap.
Lets say I have Stop Loss (or even Trailing order) activated but when trading hours start again, the opening of first next candle goes beyond the Stop Loss. The term ''beyond'' means downward if I am in Long position or upward if I am in Short position. The unwanted direction. So that the first candle, after a ''break'' (no trading time), opens on completely different price level than previous candle closes.
My question is: where exactly will my active trading position get automatically closed? Will it get exactly on Stop Loss or Trailing level or on the opening of first candle that occurs after no trading time?
Please let me know if your answer depends on anything, e.g. broker, trading instrument (e.g. USA stock, nonUSA stock, material, option, commodity, cfd, bitcoin, currency pair, and so on), which trading asset is being traded etc.