I am looking for the probability that the stock price/Geometric Brownian Motion hits the upper boundary U, before there is a retracement (from the maximum price) that exceeds amount R. In other words, for my application the lower bound isn't a constant boundary at L, it is a fixed distance R that is measured from the maximum price.
Thank you for considering this problem!