OPEN-SOURCE SCRIPT
Risk Alignment

Risk Alignment evaluates whether market conditions favor risk-on or risk-off behavior by assessing the alignment of BTC and the OTHERS index.
It uses two independent signals: the direction of the 12/25 EMA stack and price position relative to those EMAs, each classified as bullish, bearish, or neutral.
These signals are combined into a six-state regime framework:
Bullish, Neutral-Bullish, Conflicting, Neutral-Bearish, Bearish, or No Signal
This provides a clear hierarchy of conviction rather than a binary output.
It is designed to function as a top-down macro filter, helping traders gate exposure, size risk, and avoid periods of structural disagreement.
It is best used as a regime context layer, not as a standalone entry signal.
It uses two independent signals: the direction of the 12/25 EMA stack and price position relative to those EMAs, each classified as bullish, bearish, or neutral.
These signals are combined into a six-state regime framework:
Bullish, Neutral-Bullish, Conflicting, Neutral-Bearish, Bearish, or No Signal
This provides a clear hierarchy of conviction rather than a binary output.
It is designed to function as a top-down macro filter, helping traders gate exposure, size risk, and avoid periods of structural disagreement.
It is best used as a regime context layer, not as a standalone entry signal.
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.