OPEN-SOURCE SCRIPT
업데이트됨

Kinetic Regression Vector

1 250
Kinetic Regression Vector (KRV) is a non-repainting direction and compression indicator designed for one job: help you avoid low-quality markets and catch high-quality expansion moves when the odds improve.

Most “prediction” tools either repaint, lag, or pretend they can call exact future prices. KRV doesn’t do that. Instead, it focuses on what actually improves trading outcomes: regime quality, directional bias, and compression-to-expansion timing — all shown visually and locked on closed candles.

What goes into it (what it’s built from)

KRV fits a smooth model to the last N bars of price action and projects that structure forward as a “vector tunnel.”

It uses three core ideas:

Weighted Least Squares (WLS) regression
Recent candles matter more than older ones. That means the model reacts faster when conditions change (important for sector shifts and fast ETF rotations), without using lagging moving averages.

Quality gating with R²
The indicator measures whether the market has been clean and structured recently. If structure is weak (chop/noise), KRV effectively turns itself “off” so you’re not trading randomness.

Model-based uncertainty bands (SEE) with a volatility fallback
Instead of sizing the tunnel only by volatility, KRV can size it by how consistent the model has been. When the model is unreliable, the tunnel widens. When it’s reliable, the tunnel tightens. If you prefer classic behavior, ATR-based band sizing is available as a fallback.

What makes it different (why it stands out)

KRV stands out because it combines features that are usually not together in one tool:

Adaptive, model-driven tunnel width (based on model error when SEE is enabled), instead of a fixed volatility channel that can look “confident” even in messy regimes.

Directional bias that is not a moving-average lag (it’s based on the fitted structure’s slope).

A compression trigger that is self-relative (pinch compares current band width to its own historical baseline, not an arbitrary threshold).

Strict non-repaint design (signals are computed from closed candles so the chart doesn’t lie after the fact).

Forward visualization (the tunnel projects into the future as a reference map, with uncertainty naturally increasing forward).

What you see on the chart

Vector Tunnel: the projected path and the expected noise range around it.

Color: bullish or bearish bias based on the current slope of the model.

Pinch: compression detected (band width unusually tight versus its baseline).

Bull/Bear Bullets: confirmed pinch signals aligned with directional bias.

Target Marker: a forward reference point based on the current structure (not a guarantee, but a useful reference level).

How to use it (simple, repeatable)

Use it as a three-step decision tool:

Gate (participate or stand down):
If the model is not “on” (quality is weak), treat it as a “stay out” signal. This is the most important feature for avoiding bad trades.

Direction (bias):
When the model is on, follow the bias. Bull bias means your edge is on longs. Bear bias means you avoid longs (or only take bearish setups if you trade that way).

Pinch + confirmation (timing):
A pinch means pressure is building. The bullet marks “compression + bias.” For best results, act after you see expansion confirmation (breakout candle / range expansion / level break) rather than treating the bullet as a blind entry.

Best features (why traders keep it)

Non-repainting signals locked to closed bars

Clear “stay out” logic during chop

Direction bias that responds faster than classic lagging tools

Compression detection designed to highlight expansion windows

Forward tunnel for planning risk, entries, and exits visually

Best markets and timeframes

KRV performs best on liquid ETFs and liquid large-cap stocks, and on sector themes like energy where regime shifts matter.

Recommended timeframes:

4H: best for timing entries and avoiding noise

Daily: best for swing direction and higher-quality setups

Weekly: best for big-picture regime filtering (stay out vs participate)
Monthly can be used for macro regime, but not for timing.

What to expect (honest expectations)

KRV is not a guaranteed predictor of exact prices. Its edge comes from:

filtering out weak/noisy regimes,

identifying compression that often precedes expansion,

and aligning that setup with a directional bias,
without repainting.
릴리즈 노트
Kinetic Regression Vector (KRV) v3.1 — Non-Repaint Regression Tunnel + Pinch/Release

KRV is a non-repainting regression tunnel built from Weighted Least Squares (WLS) polynomial regression on log-price. Instead of using moving averages, it fits a statistically grounded curve to price structure, extracts the curve’s velocity (slope) to define directional bias, then projects a coherent forward “tunnel” that helps plan trendlines, targets, and risk. The tunnel is not a promise that price must go there — it’s a structured estimate of the most probable path given the current fitted regime, with uncertainty expanding into the future.

How it works (what you’re looking at): The midline is the current fitted regression value (“fair path”). The inner/outer bands form a channel around that fit using either SEE bands (multiplicative in log space, ideal for assets that move in percentages) or an ATR fallback (additive). The forward boxes are the projection tunnel for the next N bars (capped internally for safety), and they widen gradually to reflect increasing uncertainty. Tunnel color reflects the model’s directional “push”: aqua = bullish bias, fuchsia = bearish bias, based on the sign of the smoothed velocity.

Confidence / Gate (when to trust it): KRV uses R² gating to avoid showing low-quality fits. If R² is below your Gate, the model effectively “turns off” because the curve is not describing price well enough to be useful. Higher confidence generally means the tunnel is more reliable as a structure guide (especially for drawing diagonal trendlines using the tunnel edges). As a practical filter, most users get cleaner results using R² Gate ~0.75–0.85 on intraday and 0.80–0.90 on daily/weekly.

The signature setup: Pinch → Release (expansion engine): KRV measures tunnel width and compares it to its own baseline. When width compresses unusually tight, KRV flags a PINCH (volatility contraction). The highest-value events are the Release conditions: when the pinch ends and price breaks above the outer band (Release Up) or below the outer band (Release Down). This is a regression-based squeeze → expansion mechanic designed to catch regime shifts, not random noise.

What’s new in v3.1 (why this update is materially better than older KRV builds): The core regression math has been rebuilt to use a normalized time regressor t ∈ [−1, 1], which dramatically improves numerical stability for higher-degree polynomials and longer windows. Older approaches using raw x values can become ill-conditioned (especially degree 4), which can create jittery coefficients, unstable velocity readings, and messy forward projections. Normalization makes the curve, slope, and tunnel projection far more stable and consistent across assets/timeframes while preserving the same workflow and visuals. Non-repaint behavior remains strict: realtime bars reference confirmed data so signals/structures don’t “magically” change after the fact. The result is a cleaner tunnel, more dependable pinch behavior, and a more trustworthy forward map.

Recommended use: Use KRV as a structure + bias tool: follow the tunnel direction when confidence is healthy, and treat pinch + release as the premium expansion setup. It performs best on liquid instruments and on timeframes where structure matters (4H, Daily, Weekly), but can also be used intraday with a higher R² Gate to reduce noise. As always, no indicator predicts news shocks — use risk management and confirm with your own execution rules.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.