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
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。