Flags and pennants are continuation patterns. They are traded in the same way, but each has a slightly different shape. The terms flag and pennant are often used interchangeably.
A flag or pennant pattern forms when the price rallies sharply, then moves sideways or slightly to the downside. This sideways movement typically takes the form or a rectangle (flag) or...