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.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.