Price has been moving sideways in a narrow range for a long time, and volume keeps shrinking. Breakouts often come suddenly. You can't watch the screen all day, so set up your order in advance.
Place a Buy Stop at the top of the range so you buy automatically when price breaks out, and protect yourself with a stop-loss.
Risk warning: forex, CFDs, options, futures and crypto assets usually involve leverage or high volatility, and you can lose more than you put in. This lesson only teaches the concepts; all numbers are for illustration and are not investment advice.