KCR Kinetic Compression Ratio
- Indicatori
-
Syamsurizal Dimjati
Ciao, trader!
Dal 2023 mi occupo della progettazione e dello sviluppo di indicatori di trading ed Expert Advisor (EA) di alta qualità per MetaTrader 5. - Versione: 1.1
- Aggiornato: 29 novembre 2026
RITZ KCR DIVERGENCE PRO
Kinetic Compression Ratio Oscillator with Graded Divergence, OB/OS Hooks, Sideway Zones with Tick Spam Filter, Fibo Fan and All-Timeframe Trend Dashboard
The Kinetic Compression Ratio (KCR) is a momentum oscillator built to measure the structural tension and kinetic energy of price movement. Instead of relying on plain price changes, KCR analyzes Kinetic Deviation (KD), the raw distance between the current price and its core moving average. The detrended data is run through a Wilder-style smoothing engine and a linear stretch transformation, so the waveform uses the full 0 - 100 range and stays readable in every market phase.
RITZ KCR DIVERGENCE PRO takes this engine and turns it into a complete analysis workstation for MetaTrader 5: a non-repainting divergence scanner with quality grades, precision OB/OS hook signals, sideway (consolidation) zones with a broker tick spam filter, a Fibonacci Fan, an MA ribbon, and one professional Canvas dashboard that shows the trend of every timeframe in one place.
It works on all symbols (Forex, Metals, Indices, Energy, Crypto) and on all timeframes from M1 to MN1.
Key Features
- The KCR Engine
- Kinetic Deviation (price minus its moving average) smoothed with a Wilder algorithm and stretched linearly, so the line moves through the whole 0 - 100 scale without getting stuck in the middle
- Choose the KD moving average method (SMA, EMA, SMMA, LWMA), the applied price, the periods and the stretch ranges
- The line changes color together with the momentum shift, with eight ready color themes (Professional, Institution, Galaxy, Hacker and more) or your own custom colors
- Soft gradient OB/OS zones and an optional cloud between the line and the level, with colors that never collide with the divergence lines
- Non-Repainting Divergence Engine
- Regular and hidden divergence, bullish and bearish, found from confirmed pivots of the oscillator, so a printed signal never moves or disappears
- Every divergence gets a quality score from 0 to 100 and a grade (A, B or C) based on how deep the pivot sits in the oscillator zone, the KCR difference, the price difference in ATR, the distance between the pivots and the momentum since the second pivot
- A clean-line check removes divergences where the oscillator crossed the connecting line, which filters out most weak and false setups
- Divergence lines are drawn on the oscillator itself, and a new arrow for Div BUY and Div SELL is printed on the main chart
- A divergence that forms inside a sideway box is dimmed and marked, because it has lower reliability
- Note: a pivot needs a few closed bars on the right side to be confirmed (set by the pivot strength input), which is what keeps the signals from repainting
- Smart Extreme Reversal (OB / OS "Hook" Technology)
- Entering only because the market is overbought or oversold is dangerous. KCR follows the oscillator inside the extreme zones (above 70 or below 30 by default) and prints its marker only when the momentum turns back toward the mean
- Two modes: HOOK (the first turn inside the zone) and EXIT (the line leaves the zone)
- A minimum gap between two hooks of the same side avoids clusters of markers
- OB and OS markers are drawn on the main chart, so you can read the setup without looking away from price
- Sideway Zone with Tick Spam Filter
- Consolidation is detected from the ATR range, the efficiency ratio and the number of edge touches, and is drawn as a soft filled Canvas zone
- A live HeatBar (0 - 100) rises as price squeezes toward an edge, with the states SIDE, NEAR, TEST and BREAKOUT, and an alert at your own level
- The broker / server tick spam filter rejects duplicate and micro-move ticks, spread blow-ups, tick bursts and reverting price spikes, then uses a clean median price and a self-learning baseline
- A breakout BUY / SELL arrow becomes solid only after the filtered price stays beyond the edge for a minimum time and enough clean ticks agree. If the bar closes back inside the box, the arrow is removed and counted as "Fake filtered"
- The oscillator window also shows the sideway periods as a soft band, so you can see at a glance when divergence or hook signals appear in a range
- Predictive Kinetic Tail
- Projects a dotted trajectory into the next bars from the current kinetic velocity and an aggression multiplier
- Helps you anticipate momentum crossovers before they form. It is a projection, not a guarantee
- Fibonacci Fan
- Finds the latest swing from the last bars and draws the fan lines from the swing origin through the retracement levels (23.6, 38.2, 50, 61.8, 78.6, 100)
- Limited to a maximum of 15 bars into the future, so there are no endless rays
- Soft colored fill between the fan lines, with the golden pocket (61.8 - 78.6) highlighted
- Fan lines and fan fill have their own on/off buttons, so you can use lines only, fill only, both or neither
- The fan fill, the MA ribbon fill and the sideway fill are layered with a mask, so no fill ever covers another one
- MA Ribbon
- A soft ribbon between a fast and a slow moving average that shows trend direction on the main chart, drawn behind your candles
- Professional Canvas Dashboard
- Tabs: HOME, TREND, SIGNAL, FIBO, SYMBOL, TOOLS and LOG
- HOME shows the KCR value and zone, momentum, the preset (symbol, timeframe and bar OHLC), spread and ATR, market regime, multi-timeframe bias, last divergence, last OB/OS, sideway box, heat bar, live break, last breakout, tick quality and Fibo position
- TREND tab shows the active trend, the strength bar, the KCR value and zone, and the range / trend state of 9 timeframes (or all 21, up to MN1). Click a row to switch the chart to that timeframe
- SIGNAL tab lists the recent divergence and OB/OS events with time, grade, KCR value and price
- SYMBOL tab lists your Market Watch with bid, spread and daily change. Click a symbol to open it on the same chart
- TOOLS tab holds every switch of the indicator as a button: divergence, hidden divergence, divergence lines on the oscillator and on the chart, OB/OS hooks, chart arrows, sideway zone, heat bar, OB/OS zone fill, line cloud, Fibo Fan lines, Fibo Fan fill, MA ribbon, predictive tail, KCR value label, status badge, alerts and all-timeframe mode
- Auto-scaling font, A+ / A- / AU buttons, minimize / maximize, dark and light theme, and drag with the mouse without moving the chart
- All dashboard choices are saved per chart
- Clean Chart and Alerts
- On first placement the indicator hides the grid, tick volume and trade history, and removes the old OHLC text, for a clean chart
- Popup, sound and alert log for divergence, OB/OS hooks, heat levels and breakouts, with a cooldown to avoid repeated alerts. Alerts are tagged when the tick feed is noisy
- All text is in English and plain ASCII, so there are no font problems on any terminal
How to Trade with KCR
- The Sniper Entry (OB/OS Hooks): when a hook marker appears on the main chart after the oscillator has been inside an extreme zone, the momentum has started to turn. An OS marker below the candles points to a possible Buy setup, an OB marker above them to a possible Sell setup. Combine it with the trend of the higher timeframes in the TREND tab
- Catching the Trend Shift (Divergence): when price makes a new high but KCR makes a lower high, a bearish divergence arrow is printed once the pivot is confirmed. The reverse gives a bullish arrow. Prefer grade A and B, and treat C or dimmed signals as warnings only. Hidden divergence suggests the trend is likely to continue
- Avoiding Ranges: when the sideway zone is active, reversal signals are less reliable. Use the HeatBar and the Fake filtered counter to wait for a clean breakout before acting
- Reading the Flow: follow the color of the KCR line and the direction of the predictive tail. Stay with a trade while the color stays in your direction and the HUD value keeps moving the same way
- Fibo Fan Pockets: when price enters the golden pocket of the fan at the same time as an OS/OB hook or a divergence, the setup has an extra confluence
Best For
- Swing traders: divergence grades and the all-timeframe trend table for strategic entries
- Day traders: OB/OS hooks, sideway breakout timing and the tick-filtered HeatBar
- Traders who want to avoid fake breakouts and low-quality range signals
- Traders who want one clean workspace instead of many separate indicators
Notes
- The indicator is an analysis tool and does not guarantee profit. Always test on a demo account first and use proper risk management.
- The tick filter depends on the tick history your broker provides. If none is available the dashboard shows NO TICK DATA and a breakout arrow is confirmed only after the bar closes.
- A small support card with an "I Agree" button appears 5 minutes after the indicator is placed and again on every new day from 08:00 server time. It closes with one click and the indicator keeps running normally behind it.

has 1 bar lag/ delay
can i have source code to teeak it
This mechanism works 100% in sync with Divergence (zero lag):
1. When the KCR crosses the red line (70–90+ [or a value you set]), it sends nothing.
2. When the KCR direction reverses sharply (Reversal Hook), indicated by KCR_Buffer[i] < KCR_Buffer[i-1].
3. That point is immediately validated on the candle that has just closed (because i == rates_total - 2).
4. The terminal will automatically plot a DrawBullet on the chart—with an arrow pointing to the i-1 point (the peak)—and trigger an alert. Beyond the logic mentioned above, the code for the UI Theme, Dynamic HUD Center, and Future Predictive Lines has been seamlessly integrated. The KCR (Kinetic Compression Ratio) indicator now officially boasts a god-tier analytical brain! Happy trading with your assistant from the future!