OPEN-SOURCE SCRIPT
The Oracle

THE ORACLE — ZIZO Dev% + Risk
Hard money. Don't trust. Verify.
WHAT IT IS
The Oracle is a single-pane cycle instrument for Bitcoin and other majors. It fuses
two ideas that traders normally run separately: how far price has stretched from its
mean (Dev%), and where that stretch sits on a bounded 0–100 risk scale. It then labels
every major turning point with the full readout, so past cycles become a verifiable
record rather than a memory.
THE ONE THING TO UNDERSTAND
Column HEIGHT = deviation. Column COLOUR = risk.
Each bar's height shows how far price sits above or below its moving average, as a
percentage. Each bar's colour comes from the ZIZO risk model — a dark-blue-to-red
heatmap running low risk to high risk. So you see "how stretched" and "how dangerous"
in one glance. A tall green column and a tall red column mean very different things.
WHAT PROBLEM IT SOLVES
Deviation oscillators tell you price is extended but not whether that matters this
cycle. Risk models tell you the danger level but hide the raw stretch. The Oracle shows
both at once, and pins the numbers to the actual pivots so you can check the model
against history instead of trusting it.
HOW THE MATH WORKS
Dev%: the percentage distance of close from a chosen moving average.
Dev% = 100 × (close − MA) / MA
You choose the MA type (SMA, EMA, WMA, VWMA, HMA) and length. Default is a 200 SMA.
A "Spread" mode is also available if you prefer raw price distance over percentage.
Risk: a logarithmic position between a smoothed lower and upper band.
Risk = (log price − log lower) / (log upper − log lower)
The bands are anchored to the asset's own long moving average and scaled by a slow
decay term, so the model ages with the market rather than refitting to it. Once the
coefficients are set, they stay fixed. That is the point — a fixed anchor is what makes
the reading verifiable.
The pane also prints Risk and Smoothed Risk (0–100) to the Data Window on every bar.
PIVOT LABELS (THE CYCLE LOG)
The Oracle finds major highs and lows in the deviation series and labels each one.
With "Enrich pivot labels" on, every label carries four lines:
Date
Dev%
Risk (0–100)
Smoothed Risk (0–100)
This turns the chart into a running log of cycle tops and bottoms with their exact
conditions attached. Read left to right and you can see whether each cycle peaked at a
similar risk level, or whether the character is shifting.
MEDIAN ENGINE
Two optional medians summarise the history:
Peak medians — the typical magnitude of major pivot highs and lows.
All-bar medians — the central tendency of every positive and negative deviation.
Use the peak medians as rough "this is where cycles usually turn" reference lines. A
minimum-magnitude filter keeps small noise pivots out of the peak calculation.
READABILITY
Auto-contrast picks black or white label text automatically from each background's
brightness, so labels stay legible across the full
Hard money. Don't trust. Verify.
WHAT IT IS
The Oracle is a single-pane cycle instrument for Bitcoin and other majors. It fuses
two ideas that traders normally run separately: how far price has stretched from its
mean (Dev%), and where that stretch sits on a bounded 0–100 risk scale. It then labels
every major turning point with the full readout, so past cycles become a verifiable
record rather than a memory.
THE ONE THING TO UNDERSTAND
Column HEIGHT = deviation. Column COLOUR = risk.
Each bar's height shows how far price sits above or below its moving average, as a
percentage. Each bar's colour comes from the ZIZO risk model — a dark-blue-to-red
heatmap running low risk to high risk. So you see "how stretched" and "how dangerous"
in one glance. A tall green column and a tall red column mean very different things.
WHAT PROBLEM IT SOLVES
Deviation oscillators tell you price is extended but not whether that matters this
cycle. Risk models tell you the danger level but hide the raw stretch. The Oracle shows
both at once, and pins the numbers to the actual pivots so you can check the model
against history instead of trusting it.
HOW THE MATH WORKS
Dev%: the percentage distance of close from a chosen moving average.
Dev% = 100 × (close − MA) / MA
You choose the MA type (SMA, EMA, WMA, VWMA, HMA) and length. Default is a 200 SMA.
A "Spread" mode is also available if you prefer raw price distance over percentage.
Risk: a logarithmic position between a smoothed lower and upper band.
Risk = (log price − log lower) / (log upper − log lower)
The bands are anchored to the asset's own long moving average and scaled by a slow
decay term, so the model ages with the market rather than refitting to it. Once the
coefficients are set, they stay fixed. That is the point — a fixed anchor is what makes
the reading verifiable.
The pane also prints Risk and Smoothed Risk (0–100) to the Data Window on every bar.
PIVOT LABELS (THE CYCLE LOG)
The Oracle finds major highs and lows in the deviation series and labels each one.
With "Enrich pivot labels" on, every label carries four lines:
Date
Dev%
Risk (0–100)
Smoothed Risk (0–100)
This turns the chart into a running log of cycle tops and bottoms with their exact
conditions attached. Read left to right and you can see whether each cycle peaked at a
similar risk level, or whether the character is shifting.
MEDIAN ENGINE
Two optional medians summarise the history:
Peak medians — the typical magnitude of major pivot highs and lows.
All-bar medians — the central tendency of every positive and negative deviation.
Use the peak medians as rough "this is where cycles usually turn" reference lines. A
minimum-magnitude filter keeps small noise pivots out of the peak calculation.
READABILITY
Auto-contrast picks black or white label text automatically from each background's
brightness, so labels stay legible across the full
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.