OPEN-SOURCE SCRIPT
Aggiornato Macro Risk Proxy Switchboard [AGPro Series]

Macro Risk Proxy Switchboard [AGPro Series]
🧠 Core Idea
Are macro risk proxies supporting risk appetite, warning of defense, or sending a mixed signal?
📌 Overview / What it does
Macro Risk Proxy Switchboard [AGPro Series] is a macro context tool that compares multiple external risk proxies and converts them into a clean risk-on / risk-off switchboard.
The script uses configurable proxy symbols such as dollar pressure, yield pressure, volatility pressure, and credit appetite. It normalizes their recent movement, evaluates agreement, detects shock or divergence behavior, and displays the current macro regime directly on the chart.
It produces a macro risk rail, compact alignment labels, right-side regime tags, and a structured AG Pro panel. It does not predict price direction, automate decisions, or claim that macro proxies must control the chart.
🎯 Purpose & Design Philosophy
This script was built to solve a common context problem: traders often watch several macro proxies, but the information is scattered across different charts.
Macro Risk Proxy Switchboard compresses that context into one visual layer. It helps traders understand whether external risk conditions are supportive, defensive, mixed, or shocked.
The mindset is simple: price action matters first, but macro pressure can change the quality of breakouts, pullbacks, risk appetite, and continuation attempts.
⚡ Why This Script Is Different
Most tools focus only on the charted symbol.
This script does NOT treat macro data as a prediction engine.
Instead, it reads a configurable basket of risk proxies and asks whether those proxies agree, diverge, or create an external pressure warning.
The result is not a buy or sell signal. It is a compact macro context layer designed to improve situational awareness.
⚙️ Methodology
1. Proxy Selection
The script reads four configurable proxies: dollar pressure, yield pressure, volatility pressure, and credit appetite.
2. Proxy Normalization
Each proxy is measured by recent momentum and normalized against its own historical behavior so the readings can be compared.
3. Composite Evaluation
The script combines proxy pressure into a composite risk score and measures how many proxies agree with the current regime.
4. Visual Output
The output is displayed through a macro risk rail, event labels, right-side regime tags, and a clean AG Pro panel.
🗺️ How to Read the Chart
The macro rail represents the current external risk context.
Labels show important macro events such as risk-on alignment, risk-off alignment, proxy shock, or macro divergence.
Colors separate supportive, defensive, neutral, and shock-style behavior.
The panel shows macro regime, risk direction, composite pressure, agreement count, dominant proxy, individual proxy pressure, credit pressure, quality score, and next context.
🚦 Signals & States
• RISK-ON ALIGN → macro proxies are broadly supportive of risk appetite
• RISK-OFF ALIGN → macro proxies are broadly defensive or risk restrictive
• MIXED PROXIES → proxy agreement is weak or divided
• PROXY SHOCK → at least one proxy shows unusually strong pressure
• NEUTRAL BOARD → no clear macro tilt is active
🔔 Alerts Logic
Alerts trigger when the script detects risk-on alignment, risk-off alignment, proxy shock, or macro proxy divergence.
These alerts are attention markers only. They highlight a change in macro context, not a trading instruction.
🧩 Confluence Logic
The strongest macro context appears when multiple proxies point in the same direction and the composite score is strong.
When price structure, market trend, and macro proxy alignment agree, the context becomes more coherent.
When price action and macro pressure disagree, the chart should be interpreted with more caution.
📊 When to Use
• Crypto risk-on / risk-off evaluation
• Equity index context
• Breakout quality review
• Pullback environment analysis
• Volatility expansion periods
• Comparing price behavior against external macro pressure
⚠️ When NOT to Use
• When proxy symbols are unavailable on the selected TradingView data plan
• During market holidays where proxy data may be stale
• On very low-liquidity symbols where local behavior dominates
• When using macro context as a standalone trade trigger
• When ignoring the chart’s own structure, liquidity, and volatility
🎛️ Key Inputs
• Dollar Pressure Proxy → default DXY-style risk pressure input
• Yield Pressure Proxy → default 10-year yield-style pressure input
• Volatility Proxy → default VIX-style defensive pressure input
• Credit Appetite Proxy → default HYG-style risk appetite input
• Proxy Momentum Length → controls how recent proxy movement is measured
• Proxy Rank Length → controls normalization stability
• Agreement Threshold → controls how strict risk-on/risk-off classification is
• Visual settings → control panel, rail, labels, and readability
🖥️ Interface & Visual Design
The interface is designed as a switchboard, not a traditional oscillator.
The panel carries the macro logic, while the chart displays only the most important regime rail and event labels.
This keeps the chart clean while still giving the viewer a premium first-glance macro context.
🧪 Practical Usage Workflow
1. Read the panel macro regime
2. Check risk direction and composite score
3. Review agreement count and dominant proxy
4. Compare macro rail with current price structure
5. Treat divergence or proxy shock as context requiring extra caution
🔍 Interpretation Guidelines
A risk-on reading does not guarantee upside.
A risk-off reading does not guarantee downside.
A proxy shock means external pressure is elevated and should be reviewed.
A mixed board means macro proxies are not giving a clean message.
The best use is to combine this switchboard with price action, structure, volatility, liquidity, and timeframe context.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed buy or sell signals.
It does not claim that macro proxies always lead price.
⚠️ Limitations & Transparency
Proxy symbols may behave differently across asset classes.
Some symbols may have delayed or unavailable data depending on the user’s TradingView access.
Macro relationships can change over time.
Short-term price action can diverge from macro context for long periods.
Users should always interpret the switchboard within broader market conditions.
🧠 Market Context Notes
Macro context is most useful when it helps explain the quality of risk appetite.
Dollar pressure, yield pressure, volatility pressure, and credit appetite can all influence how traders interpret continuation, rejection, and acceptance behavior.
The script is built to simplify that context, not to replace the chart.
🧾 Use Case Examples
When price attempts a breakout while the switchboard shows risk-on alignment, the trader can evaluate whether external conditions support the move.
When price is holding support but the switchboard prints proxy shock, the trader can watch for defensive pressure.
When price trends strongly while macro proxies remain mixed, the trader can treat the move as less confirmed by external context.
🧱 System Philosophy
Macro Risk Proxy Switchboard follows the AGPro Series philosophy: clean decision-support tools that turn complex market context into readable, premium visual structure.
The script focuses on interpretation quality, not prediction claims.
🔐 Non-Promise Statement
No proxy basket can know the future.
No macro signal guarantees price direction.
This tool provides structured context only.
📉 Risk Disclosure
Trading involves risk.
Market conditions can change quickly.
All decisions remain the responsibility of the user.
This script does not provide financial advice or guaranteed trading outcomes.
📚 Educational Note
Use this script as an educational and analytical companion for studying macro pressure, risk appetite, defensive conditions, and cross-market context.
🧠 Core Idea
Are macro risk proxies supporting risk appetite, warning of defense, or sending a mixed signal?
📌 Overview / What it does
Macro Risk Proxy Switchboard [AGPro Series] is a macro context tool that compares multiple external risk proxies and converts them into a clean risk-on / risk-off switchboard.
The script uses configurable proxy symbols such as dollar pressure, yield pressure, volatility pressure, and credit appetite. It normalizes their recent movement, evaluates agreement, detects shock or divergence behavior, and displays the current macro regime directly on the chart.
It produces a macro risk rail, compact alignment labels, right-side regime tags, and a structured AG Pro panel. It does not predict price direction, automate decisions, or claim that macro proxies must control the chart.
🎯 Purpose & Design Philosophy
This script was built to solve a common context problem: traders often watch several macro proxies, but the information is scattered across different charts.
Macro Risk Proxy Switchboard compresses that context into one visual layer. It helps traders understand whether external risk conditions are supportive, defensive, mixed, or shocked.
The mindset is simple: price action matters first, but macro pressure can change the quality of breakouts, pullbacks, risk appetite, and continuation attempts.
⚡ Why This Script Is Different
Most tools focus only on the charted symbol.
This script does NOT treat macro data as a prediction engine.
Instead, it reads a configurable basket of risk proxies and asks whether those proxies agree, diverge, or create an external pressure warning.
The result is not a buy or sell signal. It is a compact macro context layer designed to improve situational awareness.
⚙️ Methodology
1. Proxy Selection
The script reads four configurable proxies: dollar pressure, yield pressure, volatility pressure, and credit appetite.
2. Proxy Normalization
Each proxy is measured by recent momentum and normalized against its own historical behavior so the readings can be compared.
3. Composite Evaluation
The script combines proxy pressure into a composite risk score and measures how many proxies agree with the current regime.
4. Visual Output
The output is displayed through a macro risk rail, event labels, right-side regime tags, and a clean AG Pro panel.
🗺️ How to Read the Chart
The macro rail represents the current external risk context.
Labels show important macro events such as risk-on alignment, risk-off alignment, proxy shock, or macro divergence.
Colors separate supportive, defensive, neutral, and shock-style behavior.
The panel shows macro regime, risk direction, composite pressure, agreement count, dominant proxy, individual proxy pressure, credit pressure, quality score, and next context.
🚦 Signals & States
• RISK-ON ALIGN → macro proxies are broadly supportive of risk appetite
• RISK-OFF ALIGN → macro proxies are broadly defensive or risk restrictive
• MIXED PROXIES → proxy agreement is weak or divided
• PROXY SHOCK → at least one proxy shows unusually strong pressure
• NEUTRAL BOARD → no clear macro tilt is active
🔔 Alerts Logic
Alerts trigger when the script detects risk-on alignment, risk-off alignment, proxy shock, or macro proxy divergence.
These alerts are attention markers only. They highlight a change in macro context, not a trading instruction.
🧩 Confluence Logic
The strongest macro context appears when multiple proxies point in the same direction and the composite score is strong.
When price structure, market trend, and macro proxy alignment agree, the context becomes more coherent.
When price action and macro pressure disagree, the chart should be interpreted with more caution.
📊 When to Use
• Crypto risk-on / risk-off evaluation
• Equity index context
• Breakout quality review
• Pullback environment analysis
• Volatility expansion periods
• Comparing price behavior against external macro pressure
⚠️ When NOT to Use
• When proxy symbols are unavailable on the selected TradingView data plan
• During market holidays where proxy data may be stale
• On very low-liquidity symbols where local behavior dominates
• When using macro context as a standalone trade trigger
• When ignoring the chart’s own structure, liquidity, and volatility
🎛️ Key Inputs
• Dollar Pressure Proxy → default DXY-style risk pressure input
• Yield Pressure Proxy → default 10-year yield-style pressure input
• Volatility Proxy → default VIX-style defensive pressure input
• Credit Appetite Proxy → default HYG-style risk appetite input
• Proxy Momentum Length → controls how recent proxy movement is measured
• Proxy Rank Length → controls normalization stability
• Agreement Threshold → controls how strict risk-on/risk-off classification is
• Visual settings → control panel, rail, labels, and readability
🖥️ Interface & Visual Design
The interface is designed as a switchboard, not a traditional oscillator.
The panel carries the macro logic, while the chart displays only the most important regime rail and event labels.
This keeps the chart clean while still giving the viewer a premium first-glance macro context.
🧪 Practical Usage Workflow
1. Read the panel macro regime
2. Check risk direction and composite score
3. Review agreement count and dominant proxy
4. Compare macro rail with current price structure
5. Treat divergence or proxy shock as context requiring extra caution
🔍 Interpretation Guidelines
A risk-on reading does not guarantee upside.
A risk-off reading does not guarantee downside.
A proxy shock means external pressure is elevated and should be reviewed.
A mixed board means macro proxies are not giving a clean message.
The best use is to combine this switchboard with price action, structure, volatility, liquidity, and timeframe context.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed buy or sell signals.
It does not claim that macro proxies always lead price.
⚠️ Limitations & Transparency
Proxy symbols may behave differently across asset classes.
Some symbols may have delayed or unavailable data depending on the user’s TradingView access.
Macro relationships can change over time.
Short-term price action can diverge from macro context for long periods.
Users should always interpret the switchboard within broader market conditions.
🧠 Market Context Notes
Macro context is most useful when it helps explain the quality of risk appetite.
Dollar pressure, yield pressure, volatility pressure, and credit appetite can all influence how traders interpret continuation, rejection, and acceptance behavior.
The script is built to simplify that context, not to replace the chart.
🧾 Use Case Examples
When price attempts a breakout while the switchboard shows risk-on alignment, the trader can evaluate whether external conditions support the move.
When price is holding support but the switchboard prints proxy shock, the trader can watch for defensive pressure.
When price trends strongly while macro proxies remain mixed, the trader can treat the move as less confirmed by external context.
🧱 System Philosophy
Macro Risk Proxy Switchboard follows the AGPro Series philosophy: clean decision-support tools that turn complex market context into readable, premium visual structure.
The script focuses on interpretation quality, not prediction claims.
🔐 Non-Promise Statement
No proxy basket can know the future.
No macro signal guarantees price direction.
This tool provides structured context only.
📉 Risk Disclosure
Trading involves risk.
Market conditions can change quickly.
All decisions remain the responsibility of the user.
This script does not provide financial advice or guaranteed trading outcomes.
📚 Educational Note
Use this script as an educational and analytical companion for studying macro pressure, risk appetite, defensive conditions, and cross-market context.
Note di rilascio
🔧 UPDATE NOTES - V1.1This update focuses on readability, visual hierarchy, panel clarity, and cleaner macro-regime presentation.
The core purpose of the script remains unchanged.
This release improves how macro proxy pressure, risk direction, proxy agreement, shock context, and the risk rail are presented on the chart.
This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.
------------------------
What Changed
------------------------
• Reworked the AG Pro panel into a cleaner two-column layout.
The panel now focuses on macro regime, risk direction, agreement, proxy board, credit pressure, and action.
• Improved dark-theme panel contrast.
Rows now use stronger alternating backgrounds, clearer borders, brighter labels, and higher-readability value text.
• Added full panel location support.
Top, middle, and bottom placement options are available for left, center, and right chart positions.
• Refined the macro risk rail.
The rail now reads as an open context guide instead of a heavy filled chart zone.
• Disabled background regime tint by default.
The chart now keeps candles and macro labels in focus without broad background color bands overpowering price.
• Added optional rail fill.
Users can still enable a light rail fill when they want a stronger visual macro zone.
• Improved event label readability.
Event labels now use two-line Title Case text with quality context and contrast-aware text color.
------------------------
Visual Improvements
------------------------
• Improved chart readability by adjusting rail style, label text, right-side tags, and panel contrast.
• Reduced visual clutter by keeping background tint disabled by default.
• Refined visual hierarchy so the macro regime, quality score, and dominant proxy context stand out more clearly.
• Kept important chart text inside contrast-safe badges.
------------------------
Interface & Usability
------------------------
• Optimized panel layout for clearer information flow.
• Improved label readability for better chart interaction.
• Adjusted default visual settings for a cleaner publication screenshot.
• Enhanced overall user experience without changing the core analytical logic.
------------------------
Behavior Notes
------------------------
This update does not change the core analytical purpose of the script.
The goal is to improve clarity, usability, and visual structure, not to introduce predictive behavior.
Users should interpret outputs the same way as before, but with improved chart organization and a cleaner macro context rail.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical tool.
Macro proxies can behave differently across regimes, assets, timeframes, and liquidity conditions.
Outputs should always be interpreted within broader market context.
------------------------
Risk Reminder
------------------------
This script is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own decisions.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Public-free and invite-only TradingView Pine Script tools for market analysis, risk planning, liquidity and execution review.
Script library & access: aligurtuna.com/agprolabs-pine-scriptleri/
Telegram: t.me/agprolabs
Script library & access: aligurtuna.com/agprolabs-pine-scriptleri/
Telegram: t.me/agprolabs
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Public-free and invite-only TradingView Pine Script tools for market analysis, risk planning, liquidity and execution review.
Script library & access: aligurtuna.com/agprolabs-pine-scriptleri/
Telegram: t.me/agprolabs
Script library & access: aligurtuna.com/agprolabs-pine-scriptleri/
Telegram: t.me/agprolabs
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.