Example with the L line, which is a horizontal level.
Enter when the price is at least one point greater than D (D level is broken). The stop-loss price is one point lower than E. Take profit size is a bit lesser than half a stop size and calculated as T = 0.47 * S.
Take/stop order bracket is fired on entering, orders are not moved until execution happens (and, of course, One Cancels Other). This is a “fire and forget” trade, no need to manage an open position.