OPEN-SOURCE SCRIPT
宏观压力计 (Macro Stress Gauge)

call on green, sell on red
the Red Line represents US Treasury Yield momentum (the cost of capital), and the Green Line represents US Dollar momentum (the global liquidity valve).
When both lines spike and break above the 50 midline, it means money is both expensive and scarce. This is the dangerous "Double Kill" moment. At this time, you should hold cash and strictly avoid high-valuation tech stocks.
Conversely, if both the Red and Green lines fall below 50—and the background turns green—that is the macro "Goldilocks Zone." This implies a loose Fed and a weakening Dollar, representing peak risk appetite. You should boldly buy high-beta growth stocks or crypto without worrying about a broad market correction.
The most common scenario is divergence (one up, one down)—for example, if the Red Line rises while the Green Line falls. This usually signals Sector Rotation rather than a crash. In this environment, capital often flows from Tech into Industrials or Commodities; you just need to follow the "Sector Radar" mentioned earlier to allocate into the strong sectors.
To summarize simply, just stare at the middle line: when both lines are above it, it’s "Red Light: Stop"; when both are below, it’s "Green Light: Go." Now, take a look at your screen—if the background hasn't turned red, you can proceed to use the sector tools to hunt for opportunities.
the Red Line represents US Treasury Yield momentum (the cost of capital), and the Green Line represents US Dollar momentum (the global liquidity valve).
When both lines spike and break above the 50 midline, it means money is both expensive and scarce. This is the dangerous "Double Kill" moment. At this time, you should hold cash and strictly avoid high-valuation tech stocks.
Conversely, if both the Red and Green lines fall below 50—and the background turns green—that is the macro "Goldilocks Zone." This implies a loose Fed and a weakening Dollar, representing peak risk appetite. You should boldly buy high-beta growth stocks or crypto without worrying about a broad market correction.
The most common scenario is divergence (one up, one down)—for example, if the Red Line rises while the Green Line falls. This usually signals Sector Rotation rather than a crash. In this environment, capital often flows from Tech into Industrials or Commodities; you just need to follow the "Sector Radar" mentioned earlier to allocate into the strong sectors.
To summarize simply, just stare at the middle line: when both lines are above it, it’s "Red Light: Stop"; when both are below, it’s "Green Light: Go." Now, take a look at your screen—if the background hasn't turned red, you can proceed to use the sector tools to hunt for opportunities.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.