OPEN-SOURCE SCRIPT
Regime Compass

Most traders take the same setup in a March 2020 crash as they would in a quiet summer drift, then wonder why results are all over the place.
Regimes change everything. A breakout that prints in low-vol trends gets chopped up in a crisis. I've learned the hard way that knowing where you stand before putting on risk matters as much as the entry signal itself.
This indicator classifies the current environment into four states: RISK-ON, NEUTRAL, RISK-OFF, CRISIS.
It blends three things:
Volatility (40% of the score). Reads VIX for equities or DVOL for crypto, falling back to a realized
vol percentile ranking when neither is on the chart. It also tracks whether vol is speeding up or
slowing down against its own longer-term average. A calm market getting choppy fast is a completely different animal to one that has been volatile for months and is starting to settle.
Trend (35%). Price against short, medium and long-term moving averages. Not calling direction, just asking whether the structure underneath is holding up or falling apart.
Momentum (25%). RSI and rate-of-change percentile over the trailing year. Captures whether we are at an extreme or not.
These blend into a single composite, lightly smoothed so the label does not flip every bar. On the chart you get a colour-coded oscillator, optional background shading so the regime state is visible at a glance, and a dashboard table breaking out each sub-score, fast realized vol, and the live VIX or DVOL read. Alerts fire on regime transitions.
It auto-detects crypto against equity and adjusts annualization accordingly. All thresholds and
lookbacks are in the settings.
I built this because regime awareness is the first filter I run on any trade. Options selling, systematic work, deciding when to lean in or step back. That question always comes first.
Regimes change everything. A breakout that prints in low-vol trends gets chopped up in a crisis. I've learned the hard way that knowing where you stand before putting on risk matters as much as the entry signal itself.
This indicator classifies the current environment into four states: RISK-ON, NEUTRAL, RISK-OFF, CRISIS.
It blends three things:
Volatility (40% of the score). Reads VIX for equities or DVOL for crypto, falling back to a realized
vol percentile ranking when neither is on the chart. It also tracks whether vol is speeding up or
slowing down against its own longer-term average. A calm market getting choppy fast is a completely different animal to one that has been volatile for months and is starting to settle.
Trend (35%). Price against short, medium and long-term moving averages. Not calling direction, just asking whether the structure underneath is holding up or falling apart.
Momentum (25%). RSI and rate-of-change percentile over the trailing year. Captures whether we are at an extreme or not.
These blend into a single composite, lightly smoothed so the label does not flip every bar. On the chart you get a colour-coded oscillator, optional background shading so the regime state is visible at a glance, and a dashboard table breaking out each sub-score, fast realized vol, and the live VIX or DVOL read. Alerts fire on regime transitions.
It auto-detects crypto against equity and adjusts annualization accordingly. All thresholds and
lookbacks are in the settings.
I built this because regime awareness is the first filter I run on any trade. Options selling, systematic work, deciding when to lean in or step back. That question always comes first.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Public, timestamped track record. Free month of the desk: ivanlabrie.netlify.app
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Public, timestamped track record. Free month of the desk: ivanlabrie.netlify.app
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.