@HamedH2, hey sorry late reply... I got the angle from the long-term trend line. Sometimes using geometry on bullish pennants which have about a 73% chance of occurring you can go as far as calculating the length of the new leg up using calculus.
samuraitradingacademy.com/7-best-price-action-patterns/
you can also check out different websites that help you on your trades.