Both are trend continuation patterns but flags have a higher probability of continuing the trend than pennants. Pennants are almost 50/50 that it can go either way. While you can trade flag patterns pretty reliably that they will go in the direction of the main trend, pennants are best if trading the breakouts. In fact, there are whole trading systems based solely on trading flags only. And combined with proper money management, they work quite well.