OPEN-SOURCE SCRIPT
Diupdate Zookoff-Zookonacci Cipher B + Divergences

The Zook Ciphernator — Cipher B
The Zook Ciphernator is a multi-layer momentum, divergence, and reversal dashboard inspired by the classic Cipher B / VuManChu-style oscillator layout, but redesigned with cleaner visuals, improved toggle control, flexible display positioning, enhanced RSI divergence options, and a more refined dot/legend system.
This indicator is designed to help read momentum shifts, exhaustion, divergence, and possible reversal conditions in one pane. It is not intended to be used as a standalone buy/sell system. The signals are contextual tools and should be combined with price action, market structure, volume, risk management, and your own trading plan.
Core Components
WaveTrend
WaveTrend is the main momentum structure of the indicator.
It consists of:
Fast WaveTrend
Slow WaveTrend
The fast WaveTrend crossing above or below the slow WaveTrend can indicate a possible momentum shift.
In this version, the WaveTrend hills are rendered as layered blue/dark areas so the interaction between the fast and slow waves is easier to read visually.
WaveTrend is also used for standard buy/sell signals, WaveTrend divergence, and the Gold Dot logic.
Fast WT / VWAP
The VWAP layer in this indicator is not traditional price VWAP.
Here, it is calculated from the gap between the fast WaveTrend and the slow WaveTrend. In other words, it acts like a fast WaveTrend impulse layer.
When it rises, it suggests the fast WaveTrend is gaining strength relative to the slow WaveTrend. When it falls, it suggests momentum is weakening.
It can often give an earlier clue that momentum is starting to turn before the full WaveTrend structure becomes obvious.
Money Flow
The Money Flow area is a background pressure gauge.
It helps show whether the recent candle structure is leaning bullish or bearish.
Cyan Money Flow = bullish pressure
Red Money Flow = bearish pressure
This Money Flow is best used as context, not as a direct entry trigger. For example, a bullish reversal setup is usually cleaner if Money Flow is improving, flattening, or moving back toward positive territory.
Stochastic RSI
Stochastic RSI is included as a timing tool.
It is useful for identifying when momentum is stretched, bottoming, topping, or beginning to turn.
Typical use:
Low Stoch RSI beginning to curl up = possible early bullish timing clue
High Stoch RSI beginning to roll over = possible early bearish timing clue
Stochastic RSI can be displayed in the upper or lower half of the pane using the display-position controls.
RSI
RSI is included with optional smoothing, overbought/oversold guide levels, and divergence detection.
The RSI line uses dynamic colouring:
Gold = neutral RSI zone
Cyan = RSI oversold zone
Red = RSI overbought zone
The RSI smoothing line can be used as a quieter reference line to help see the broader RSI direction.
RSI can also be displayed in the upper or lower half of the pane.
RSI Divergence Engines
The indicator includes two RSI divergence modes.
1. Cipher Classic
This uses a stricter, confirmed-fractal style divergence method.
It tends to produce fewer signals, but they are cleaner and more selective.
2. Realtime Pivot
This uses a more responsive pivot-scanning divergence engine.
It can detect more RSI divergences and can pick them up earlier. Because it can work closer to the current candle, some signals may change or disappear before confirmation.
There is also an Auto mode:
When WaveTrend is visible, RSI divergences default toward the classic cipher style.
When WaveTrend is hidden, RSI divergences can use the realtime pivot style.
Schaff Trend Cycle
Schaff TC is an optional trend-cycle filter.
It is based on MACD-style momentum, then normalized into a cyclic oscillator. It can help show whether the broader momentum cycle is improving or weakening.
It is not a primary entry trigger, but it can be useful as a background confirmation tool.
Schaff TC can also be displayed in the upper or lower half of the pane.
Sommi Flag and Sommi Diamond
The indicator also includes the original Sommi-style Flag and Diamond pattern logic.
These are optional advanced signals that combine WaveTrend behaviour with higher-timeframe context.
Sommi Flag
The Sommi Flag is designed to highlight potential continuation or reversal-style conditions using:
Money Flow direction
WaveTrend position
WaveTrend cross direction
Higher-timeframe VWAP / Fast WT behaviour
A bearish Sommi Flag can appear when Money Flow is weak, WaveTrend is elevated and crossing down, and the higher-timeframe Fast WT / VWAP context is bearish.
A bullish Sommi Flag uses the opposite logic.
Sommi Diamond
The Sommi Diamond uses higher-timeframe Heikin Ashi candle direction together with WaveTrend crossing behaviour.
A bearish Sommi Diamond can appear when higher-timeframe Heikin Ashi candles are bearish and WaveTrend crosses down from a relevant level.
A bullish Sommi Diamond uses the opposite logic.
How to Use Sommi Signals
Sommi signals should be treated as optional confluence markers, not standalone trade signals.
They are most useful when they agree with the broader context shown by:
WaveTrend
Money Flow
VWAP / Fast WT
Stochastic RSI
RSI divergence
Price structure
Because this version of the Zook Ciphernator focuses mainly on WaveTrend, RSI, Stoch RSI, Money Flow, VWAP, and the dot system, the Sommi tools remain available as legacy/advanced features for users who like that style of signal filtering.
Display Position Controls
The indicator includes quick display controls for:
RSI
Stochastic RSI
Schaff TC
Each can be set to:
Auto
Upper
Lower
Auto uses the current adaptive layout rules. Upper and Lower allow manual override.
This makes it easier to avoid visual clashes between RSI, Stochastic RSI, WaveTrend, and Schaff TC.
Dot Legend
TOP ROW DOTS
Purple/pink dot = RSI bearish divergence
Price has made a higher high, but RSI has made a lower high. This suggests upside momentum may be weakening.
Red dot, slightly faded = Standard WaveTrend sell signal
The fast WaveTrend crosses down through the slow WaveTrend while WaveTrend is in an overbought area.
Red dot, brighter = Standard WaveTrend sell signal + confirmed WaveTrend bearish divergence
The normal WaveTrend sell signal has triggered and it coincides with a confirmed WaveTrend bearish divergence. This means price has pushed higher, but WaveTrend has failed to make a stronger high.
BOTTOM ROW DOTS
Lime dot = RSI bullish divergence
Price has made a lower low, but RSI has made a higher low. This suggests downside momentum may be weakening.
Cyan dot, slightly faded = Standard WaveTrend buy signal
The fast WaveTrend crosses up through the slow WaveTrend while WaveTrend is in an oversold area.
Cyan dot, brighter = Standard WaveTrend buy signal + confirmed WaveTrend bullish divergence
The normal WaveTrend buy signal has occurred and it coincides with a confirmed WaveTrend bullish divergence. This means price has pushed lower, but WaveTrend has failed to make a weaker low.
Gold dot, larger = Stronger bullish reversal setup
This is a higher-alert bullish reversal condition. It generally combines a bullish divergence / oversold WaveTrend structure with RSI oversold confirmation.
Important: the Gold Dot is not an instruction to buy immediately. It is a warning that a potentially stronger reversal setup may be forming. Confirmation from price action, structure, and your trading plan is still required.
DOTS ON THE WAVETREND HILLS
Red dot on WaveTrend hill = Fast WaveTrend crossing down through slow WaveTrend
This marks a possible bearish momentum shift.
Cyan dot on WaveTrend hill = Fast WaveTrend crossing up through slow WaveTrend
This marks a possible bullish momentum shift.
These hill dots mark all WaveTrend crosses. They are useful for reading momentum shifts, but they are not the same as the stronger top/bottom row buy/sell signals.
Visibility Behaviour
The top and bottom row dots are designed to remain in place even if the WaveTrend hills are hidden.
This allows you to hide the WaveTrend visual layer while still preserving the key signal information.
Similarly, RSI divergence dots can remain visible even if the RSI line itself is hidden.
Suggested Reading Framework
A simple way to read the indicator:
Stochastic RSI = timing and stretched momentum
WaveTrend = main momentum structure
VWAP / Fast WT = early impulse clue
Money Flow = background pressure
RSI divergences = momentum disagreement with price
Gold Dot = stronger bullish reversal warning
Schaff TC = optional trend-cycle confirmation
Sommi Flag / Diamond = optional higher-timeframe confluence markers
For bullish setups, look for oversold conditions, improving VWAP / Fast WT, Stoch RSI turning up, bullish divergence, and Money Flow stabilising or improving.
For bearish setups, look for overbought conditions, weakening VWAP / Fast WT, Stoch RSI rolling over, bearish divergence, and Money Flow weakening.
Future Development
This version focuses on the core Cipher B-style workflow: WaveTrend, VWAP / Fast WT, Money Flow, Stochastic RSI, RSI divergence, Schaff TC, Sommi tools, and the refined dot system.
Future iterations may include additional modules such as:
MACD-based confirmation
DSS Bressert
Further divergence refinements
Additional display and confluence options
These may be added in future versions if they improve the indicator without making the layout too cluttered.
Disclaimer
This indicator is for educational and analytical use only. It does not provide financial advice and should not be treated as a standalone trading system.
No signal is guaranteed. Always use proper risk management and make your own trading decisions.
Some examples of customisable views:





Stripping down to just RSI and Stoch RSI while dots are preserved:


The Zook Ciphernator is a multi-layer momentum, divergence, and reversal dashboard inspired by the classic Cipher B / VuManChu-style oscillator layout, but redesigned with cleaner visuals, improved toggle control, flexible display positioning, enhanced RSI divergence options, and a more refined dot/legend system.
This indicator is designed to help read momentum shifts, exhaustion, divergence, and possible reversal conditions in one pane. It is not intended to be used as a standalone buy/sell system. The signals are contextual tools and should be combined with price action, market structure, volume, risk management, and your own trading plan.
Core Components
WaveTrend
WaveTrend is the main momentum structure of the indicator.
It consists of:
Fast WaveTrend
Slow WaveTrend
The fast WaveTrend crossing above or below the slow WaveTrend can indicate a possible momentum shift.
In this version, the WaveTrend hills are rendered as layered blue/dark areas so the interaction between the fast and slow waves is easier to read visually.
WaveTrend is also used for standard buy/sell signals, WaveTrend divergence, and the Gold Dot logic.
Fast WT / VWAP
The VWAP layer in this indicator is not traditional price VWAP.
Here, it is calculated from the gap between the fast WaveTrend and the slow WaveTrend. In other words, it acts like a fast WaveTrend impulse layer.
When it rises, it suggests the fast WaveTrend is gaining strength relative to the slow WaveTrend. When it falls, it suggests momentum is weakening.
It can often give an earlier clue that momentum is starting to turn before the full WaveTrend structure becomes obvious.
Money Flow
The Money Flow area is a background pressure gauge.
It helps show whether the recent candle structure is leaning bullish or bearish.
Cyan Money Flow = bullish pressure
Red Money Flow = bearish pressure
This Money Flow is best used as context, not as a direct entry trigger. For example, a bullish reversal setup is usually cleaner if Money Flow is improving, flattening, or moving back toward positive territory.
Stochastic RSI
Stochastic RSI is included as a timing tool.
It is useful for identifying when momentum is stretched, bottoming, topping, or beginning to turn.
Typical use:
Low Stoch RSI beginning to curl up = possible early bullish timing clue
High Stoch RSI beginning to roll over = possible early bearish timing clue
Stochastic RSI can be displayed in the upper or lower half of the pane using the display-position controls.
RSI
RSI is included with optional smoothing, overbought/oversold guide levels, and divergence detection.
The RSI line uses dynamic colouring:
Gold = neutral RSI zone
Cyan = RSI oversold zone
Red = RSI overbought zone
The RSI smoothing line can be used as a quieter reference line to help see the broader RSI direction.
RSI can also be displayed in the upper or lower half of the pane.
RSI Divergence Engines
The indicator includes two RSI divergence modes.
1. Cipher Classic
This uses a stricter, confirmed-fractal style divergence method.
It tends to produce fewer signals, but they are cleaner and more selective.
2. Realtime Pivot
This uses a more responsive pivot-scanning divergence engine.
It can detect more RSI divergences and can pick them up earlier. Because it can work closer to the current candle, some signals may change or disappear before confirmation.
There is also an Auto mode:
When WaveTrend is visible, RSI divergences default toward the classic cipher style.
When WaveTrend is hidden, RSI divergences can use the realtime pivot style.
Schaff Trend Cycle
Schaff TC is an optional trend-cycle filter.
It is based on MACD-style momentum, then normalized into a cyclic oscillator. It can help show whether the broader momentum cycle is improving or weakening.
It is not a primary entry trigger, but it can be useful as a background confirmation tool.
Schaff TC can also be displayed in the upper or lower half of the pane.
Sommi Flag and Sommi Diamond
The indicator also includes the original Sommi-style Flag and Diamond pattern logic.
These are optional advanced signals that combine WaveTrend behaviour with higher-timeframe context.
Sommi Flag
The Sommi Flag is designed to highlight potential continuation or reversal-style conditions using:
Money Flow direction
WaveTrend position
WaveTrend cross direction
Higher-timeframe VWAP / Fast WT behaviour
A bearish Sommi Flag can appear when Money Flow is weak, WaveTrend is elevated and crossing down, and the higher-timeframe Fast WT / VWAP context is bearish.
A bullish Sommi Flag uses the opposite logic.
Sommi Diamond
The Sommi Diamond uses higher-timeframe Heikin Ashi candle direction together with WaveTrend crossing behaviour.
A bearish Sommi Diamond can appear when higher-timeframe Heikin Ashi candles are bearish and WaveTrend crosses down from a relevant level.
A bullish Sommi Diamond uses the opposite logic.
How to Use Sommi Signals
Sommi signals should be treated as optional confluence markers, not standalone trade signals.
They are most useful when they agree with the broader context shown by:
WaveTrend
Money Flow
VWAP / Fast WT
Stochastic RSI
RSI divergence
Price structure
Because this version of the Zook Ciphernator focuses mainly on WaveTrend, RSI, Stoch RSI, Money Flow, VWAP, and the dot system, the Sommi tools remain available as legacy/advanced features for users who like that style of signal filtering.
Display Position Controls
The indicator includes quick display controls for:
RSI
Stochastic RSI
Schaff TC
Each can be set to:
Auto
Upper
Lower
Auto uses the current adaptive layout rules. Upper and Lower allow manual override.
This makes it easier to avoid visual clashes between RSI, Stochastic RSI, WaveTrend, and Schaff TC.
Dot Legend
TOP ROW DOTS
Purple/pink dot = RSI bearish divergence
Price has made a higher high, but RSI has made a lower high. This suggests upside momentum may be weakening.
Red dot, slightly faded = Standard WaveTrend sell signal
The fast WaveTrend crosses down through the slow WaveTrend while WaveTrend is in an overbought area.
Red dot, brighter = Standard WaveTrend sell signal + confirmed WaveTrend bearish divergence
The normal WaveTrend sell signal has triggered and it coincides with a confirmed WaveTrend bearish divergence. This means price has pushed higher, but WaveTrend has failed to make a stronger high.
BOTTOM ROW DOTS
Lime dot = RSI bullish divergence
Price has made a lower low, but RSI has made a higher low. This suggests downside momentum may be weakening.
Cyan dot, slightly faded = Standard WaveTrend buy signal
The fast WaveTrend crosses up through the slow WaveTrend while WaveTrend is in an oversold area.
Cyan dot, brighter = Standard WaveTrend buy signal + confirmed WaveTrend bullish divergence
The normal WaveTrend buy signal has occurred and it coincides with a confirmed WaveTrend bullish divergence. This means price has pushed lower, but WaveTrend has failed to make a weaker low.
Gold dot, larger = Stronger bullish reversal setup
This is a higher-alert bullish reversal condition. It generally combines a bullish divergence / oversold WaveTrend structure with RSI oversold confirmation.
Important: the Gold Dot is not an instruction to buy immediately. It is a warning that a potentially stronger reversal setup may be forming. Confirmation from price action, structure, and your trading plan is still required.
DOTS ON THE WAVETREND HILLS
Red dot on WaveTrend hill = Fast WaveTrend crossing down through slow WaveTrend
This marks a possible bearish momentum shift.
Cyan dot on WaveTrend hill = Fast WaveTrend crossing up through slow WaveTrend
This marks a possible bullish momentum shift.
These hill dots mark all WaveTrend crosses. They are useful for reading momentum shifts, but they are not the same as the stronger top/bottom row buy/sell signals.
Visibility Behaviour
The top and bottom row dots are designed to remain in place even if the WaveTrend hills are hidden.
This allows you to hide the WaveTrend visual layer while still preserving the key signal information.
Similarly, RSI divergence dots can remain visible even if the RSI line itself is hidden.
Suggested Reading Framework
A simple way to read the indicator:
Stochastic RSI = timing and stretched momentum
WaveTrend = main momentum structure
VWAP / Fast WT = early impulse clue
Money Flow = background pressure
RSI divergences = momentum disagreement with price
Gold Dot = stronger bullish reversal warning
Schaff TC = optional trend-cycle confirmation
Sommi Flag / Diamond = optional higher-timeframe confluence markers
For bullish setups, look for oversold conditions, improving VWAP / Fast WT, Stoch RSI turning up, bullish divergence, and Money Flow stabilising or improving.
For bearish setups, look for overbought conditions, weakening VWAP / Fast WT, Stoch RSI rolling over, bearish divergence, and Money Flow weakening.
Future Development
This version focuses on the core Cipher B-style workflow: WaveTrend, VWAP / Fast WT, Money Flow, Stochastic RSI, RSI divergence, Schaff TC, Sommi tools, and the refined dot system.
Future iterations may include additional modules such as:
MACD-based confirmation
DSS Bressert
Further divergence refinements
Additional display and confluence options
These may be added in future versions if they improve the indicator without making the layout too cluttered.
Disclaimer
This indicator is for educational and analytical use only. It does not provide financial advice and should not be treated as a standalone trading system.
No signal is guaranteed. Always use proper risk management and make your own trading decisions.
Some examples of customisable views:
Stripping down to just RSI and Stoch RSI while dots are preserved:
Catatan Rilis
## Update Notes — Zook Ciphernator / Cipher BThis update refines the WaveTrend signal-dot logic and makes the indicator more responsive while preserving the value of divergence confirmation.
### WaveTrend signal-dot logic update
The previous version used a delayed row-dot model, where the standard top/bottom row buy and sell dots could be delayed while the script waited to see whether WaveTrend divergence confirmation appeared.
This version separates the two ideas more cleanly:
* **Faded cyan/red row dot** = immediate standard WaveTrend buy/sell signal
* **Bright cyan/red row dot** = that same standard signal was later confirmed by WaveTrend divergence
In other words, the standard buy/sell signal now appears immediately when the fast WaveTrend crosses the slow WaveTrend from the relevant oversold/overbought area.
If a matching WaveTrend divergence confirms shortly afterwards, the original dot is visually upgraded to the brighter version.
The default WaveTrend divergence upgrade window is now set to **2 bars**, which lines up more naturally with the classic Cipher/VuManChu-style fractal divergence confirmation process.
### Why this was changed
This makes the indicator more responsive. The user no longer has to wait for the ordinary buy/sell row dot to appear, while still being able to see when that signal later gains stronger confirmation from WaveTrend divergence.
Conceptually:
* **Faded dot** = timing signal
* **Bright dot** = timing signal + later divergence confirmation
This better separates signal timing from signal quality.
### Backtesting notes
Initial backtesting on BTC showed that the immediate standard WaveTrend signal performed better than the delayed row-signal model in several long-side tests.
For example, on BTC 4H long-only testing, the immediate standard signal produced stronger raw returns than the delayed row-signal model, while the bright-confirmed upgrade model was more selective and had a higher win rate but fewer trades:
| Test | Model | Closed trades | Profit factor | Win rate | Closed PnL |
| ------------------ | -------------------- | ------------: | ------------: | --------: | ------------: |
| BTC 4H Long: 1 | Delayed | 170 | 1.40 | 70.00% | +567.06% |
| BTC 4H Long: 2 | Immediate | 170 | 1.43 | 68.24% | +708.03% |
| BTC 4H Long: 3 | BrightConfirmed | 68 | 1.41 | 72.06% | +124.11% |
On BTC daily testing, the bright-confirmed model was much more selective and showed strong results, but the sample size was smaller, so it should be treated carefully.
Overall, the backtesting so far suggests that the immediate signal is useful for timing, while the bright divergence-confirmed signal is useful as a higher-quality confluence marker.
### Short-side caveat
Short-side backtesting still needs more work.
Early short-only and long/short tests on BTC were weaker than the long-only tests, especially before position sizing was adjusted. After reducing position size, the results became cleaner, but the raw short-side logic still appears to need further filtering.
Future versions may explore improvements such as:
* higher-timeframe trend filters
* EMA or market-regime filters
* ATR or fixed-percentage stops
* take-profit logic
* better short-side confirmation rules
For now, users should treat short-side signals with more caution and use their own risk management and market-context filters.
### Stochastic RSI smoothing change
The default Stochastic RSI visual smoothing has been changed from `2` to `1`.
This means the displayed Stochastic RSI now more closely matches the raw/default Stoch RSI calculation by default.
The previous smoothing value made the Stoch RSI look slightly more rounded and visually cleaner, but it could also make the displayed peaks and troughs look slightly different from the underlying raw Stoch RSI logic.
The smoothing option remains available for users who prefer the softer visual style, but the default is now more transparent and closer to the underlying calculation.
### Summary
This update is intended to make the Zook Ciphernator more responsive, cleaner, and more logically structured:
* immediate standard WaveTrend buy/sell dots
* later bright upgrade when WaveTrend divergence confirms
* default 2-bar divergence upgrade window
* Stochastic RSI visual smoothing defaulted back to raw/unsmoothed display
* continued caution around short-side signals pending further testing
As always, this indicator is not financial advice and should not be used as a standalone trading system. It is designed as a confluence and market-structure tool to support a broader trading process.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.