Prior evidence suggests that macroprudential policy has small and insignificant effects on the volume of portfolio flows. We show, however, that these minor effects mask very different relationships across the global financial cycle. A tighter ex-ante macroprudential stance amplifies the impact of global risk shocks on bond and equity flows-increasing outflows by significantly more during risk-off episodes and increasing inflows significantly more during risk-on episodes. These amplification effects are more prominent at the "extremes", especially for extreme risk-off periods, and are larger for regulations that target specific risks (such as currency or housing exposures) than those which strengthen generalized cyclical buffers (such as the CCyB). This paper estimates these relationships using a policy-shocks approach that corrects for reverse causality by combining high-frequency risk measures with weekly data on portfolio investment and a new measure of macroprudential regulations that captures the intensity of policy stances. Overall, the results support a growing body of evidence that macroprudential regulation can reduce the volume and volatility of bank flows, but shift risks in ways that aggravate vulnerabilities in other parts of the financial system. * Thanks to Chaitri Gulati for excellent research assistance and special thanks to Catherine Casanova, Ambrosio Cesa-Bianchi and Luc Laeven for detailed comments on earlier drafts of the paper. Further thanks to seminar participants at the IMF and Federal Reserve Bank of Kansas City, and conference participants at the NBER-ISOM conference, the Barcelona GSE Summer Forum on Financial Shocks, Channels, and Macro Outcomes, and BIS/BoE/ECB/IMF Spillovers conference for helpful comments and suggestions. This paper reflects the views and analysis of the authors and not any institutions with which they are affiliated.