Investment = Saving relation in an open economy I am reading the book Macroeconomics by Olivier Blanchard.

It states that an alternative way of looking at an goods market equilibrium is investment = saving.  In an open economy it states the equilibrium condition is Net Exports = Saving (both private and public) - Investment.

I am struggling a little bit with the intuition of understanding this condition.  Would it be because the difference between saving and investment would contribute to the capital account aspect of the balance of payments in some way?

I would be very grateful if someone could help me to gain an understanding of this equilibrium condition.

Thankyou.
First it should be clear that this is an (ex post) national account equality:

$Y=C+I+G+NX$, the private saving is $S_p=Y-C-T$ and public saving is $S_g=T-G$
thus you have $S_p+S_g-I=NX$.

Later you see in this book that the net exports, which depend on the exchange rate, are exactly equal to the Net Capital Outflow. Why? because an export is like a capital import (and vice versa).