PROTECTED SOURCE SCRIPT
已更新 Keltner Channels For Loop | RakoQuant

Keltner Channels For Loop | RakoQuant is a regime-based trend indicator built on a robust volatility engine using a for-loop True Range mean, designed specifically for clean trend-state classification in crypto markets.
This tool is part of the RakoQuant protected research line, combining institutional visuals, persistent breakout logic, and built-in backtest-grade performance metrics.
Core Concept
This indicator answers one key question:
Is price breaking into a bullish expansion regime, or collapsing into bearish volatility?
Unlike standard Keltner Channels that rely on ATR smoothing, this version computes volatility using a loop-based TR mean, producing a more structurally consistent envelope.
How It Works
1. Adaptive Keltner Basis
The channel baseline can be selected from:
EMA (default)
HMA (faster trend anchor)
DEMA (low-lag institutional baseline)
2. For-Loop True Range Volatility Engine
Instead of ATR, volatility is measured by:
True Range calculated per candle
Mean(TR) computed through a for-loop population average
This reduces noise artifacts and creates cleaner trend corridors.
3. Regime Breakout Logic
Two signal modes are supported:
Breakout Persistent Mode
State flips only when price breaks beyond the channel
Live Mode
State updates dynamically based on position relative to bands
Regime states:
Bullish → active bullish expansion
Bearish → defensive contraction
Neutral → no volatility breakout
Visual Engine (UniStrat Palette)
This script uses the full RakoQuant Premium Palette System:
Alpha, Desert, Premium, Navy, Warm, Toxic, Neo, Matrix
Bull and Bear states automatically repaint:
Rails
Candle colors
Buy/Sell labels
BUY / SELL Labels
On confirmed regime flips:
𝓑𝓾𝔂 prints on bullish breakout
𝓢𝓮𝓵𝓵 prints on bearish breakdown
Designed for clean regime shifts — not candle-to-candle noise.
RQ Custom Metrics Table (Built-In Backtest)
This protected release includes the full RakoQuant Indicator Backtest Engine, displaying:
Equity Max Drawdown
Intra-Trade Max Drawdown
Profit Factor
Win Rate
Sharpe Ratio
Sortino Ratio
Omega Ratio
Half Kelly Exposure
Total Trades
Net Profit %
Displayed in the signature:
𝓑𝓪𝓬𝓴𝓽𝓮𝓼𝓽 𝓜𝓮𝓽𝓻𝓲𝓬𝓼
All metrics update live directly from the indicator logic.
How to Use
✅ Trend regime filter for swing systems
✅ Volatility breakout confirmation layer
✅ Portfolio regime gating (RSPS / UniStrat frameworks)
✅ Best suited for 4H–1D markets
Trade only in alignment with the active regime:
Bull → long-biased environment
Bear → defensive / short environment
Screenshot Placement
📸 Example chart / screenshot:
This tool is part of the RakoQuant protected research line, combining institutional visuals, persistent breakout logic, and built-in backtest-grade performance metrics.
Core Concept
This indicator answers one key question:
Is price breaking into a bullish expansion regime, or collapsing into bearish volatility?
Unlike standard Keltner Channels that rely on ATR smoothing, this version computes volatility using a loop-based TR mean, producing a more structurally consistent envelope.
How It Works
1. Adaptive Keltner Basis
The channel baseline can be selected from:
EMA (default)
HMA (faster trend anchor)
DEMA (low-lag institutional baseline)
2. For-Loop True Range Volatility Engine
Instead of ATR, volatility is measured by:
True Range calculated per candle
Mean(TR) computed through a for-loop population average
This reduces noise artifacts and creates cleaner trend corridors.
3. Regime Breakout Logic
Two signal modes are supported:
Breakout Persistent Mode
State flips only when price breaks beyond the channel
Live Mode
State updates dynamically based on position relative to bands
Regime states:
Bullish → active bullish expansion
Bearish → defensive contraction
Neutral → no volatility breakout
Visual Engine (UniStrat Palette)
This script uses the full RakoQuant Premium Palette System:
Alpha, Desert, Premium, Navy, Warm, Toxic, Neo, Matrix
Bull and Bear states automatically repaint:
Rails
Candle colors
Buy/Sell labels
BUY / SELL Labels
On confirmed regime flips:
𝓑𝓾𝔂 prints on bullish breakout
𝓢𝓮𝓵𝓵 prints on bearish breakdown
Designed for clean regime shifts — not candle-to-candle noise.
RQ Custom Metrics Table (Built-In Backtest)
This protected release includes the full RakoQuant Indicator Backtest Engine, displaying:
Equity Max Drawdown
Intra-Trade Max Drawdown
Profit Factor
Win Rate
Sharpe Ratio
Sortino Ratio
Omega Ratio
Half Kelly Exposure
Total Trades
Net Profit %
Displayed in the signature:
𝓑𝓪𝓬𝓴𝓽𝓮𝓼𝓽 𝓜𝓮𝓽𝓻𝓲𝓬𝓼
All metrics update live directly from the indicator logic.
How to Use
✅ Trend regime filter for swing systems
✅ Volatility breakout confirmation layer
✅ Portfolio regime gating (RSPS / UniStrat frameworks)
✅ Best suited for 4H–1D markets
Trade only in alignment with the active regime:
Bull → long-biased environment
Bear → defensive / short environment
Screenshot Placement
📸 Example chart / screenshot:
版本注释
V2版本注释
Added a colour受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。